select last value for cpucount var

This commit is contained in:
m0duspwnens committed 2021-11-02 08:41:57 -04:00
1 parent 5d414c8bdd
commit 3517ea3f2a
1 file changed
+2 -2
+2 -2
View File
@@ -2,7 +2,7 @@
"allValue": null,
"current": {},
"datasource": "InfluxDB",
"definition": "SELECT \"n_cpus\" FROM \"system\" WHERE \"host\" =~ /^$servername$/",
"definition": "SELECT last(\"n_cpus\") FROM \"system\" WHERE \"host\" =~ /^$servername$/",
"description": null,
"error": null,
"hide": 2,
@@ -11,7 +11,7 @@
"multi": false,
"name": "cpucount",
"options": [],
"query": "SELECT \"n_cpus\" FROM \"system\" WHERE \"host\" =~ /^$servername$/",
"query": "SELECT last(\"n_cpus\") FROM \"system\" WHERE \"host\" =~ /^$servername$/",
"refresh": 1,
"regex": "",
"skipUrlSync": false,