Browse Source

20180514 dashboard/status.json.in (count_scalar ersetzt weil gibt's nicht mehr in Prometheus 2)

Altlast 6 years ago
parent
commit
b2fef45b15
2 changed files with 4 additions and 4 deletions
  1. 2 2
      dashboard/status-render.json.in
  2. 2 2
      dashboard/status.json.in

+ 2 - 2
dashboard/status-render.json.in

@@ -537,7 +537,7 @@
        "value" : "0"
       },
       {
-       "op" : "=",
+       "op" : ">=",
        "text" : "true",
        "value" : "1"
       }
@@ -2970,7 +2970,7 @@
     "name" : "autoupdater_int",
     "options" : [
     ],
-    "query" : "query_result(vector(count_scalar(%%PROM_INFO_PREFIX%%{hostname=\"[[hostname]]\",autoupdater=\"true\"})))",
+    "query" : "query_result(count(%%PROM_INFO_PREFIX%%{hostname=\"[[hostname]]\",autoupdater=\"true\"}) or vector(0))",
     "refresh" : 2,
     "regex" : "\/.* (.+) .*\/",
     "sort" : 0,

+ 2 - 2
dashboard/status.json.in

@@ -537,7 +537,7 @@
        "value" : "0"
       },
       {
-       "op" : "=",
+       "op" : ">=",
        "text" : "true",
        "value" : "1"
       }
@@ -2970,7 +2970,7 @@
     "name" : "autoupdater_int",
     "options" : [
     ],
-    "query" : "query_result(vector(count_scalar(%%PROM_INFO_PREFIX%%{hostname=\"[[hostname]]\",autoupdater=\"true\"})))",
+    "query" : "query_result(count(%%PROM_INFO_PREFIX%%{hostname=\"[[hostname]]\",autoupdater=\"true\"}) or vector(0))",
     "refresh" : 2,
     "regex" : "\/.* (.+) .*\/",
     "sort" : 0,