Browse Source

20171220 dashboard/status-mesh.json.in (regex für die Knoten eines Meshs nach der größten Knotenzahl der letzten Zeit (1d) bestimmen)

Altlast 7 years ago
parent
commit
4362aee7a1
2 changed files with 6 additions and 6 deletions
  1. 3 3
      dashboard/status-mesh-render.json.in
  2. 3 3
      dashboard/status-mesh.json.in

+ 3 - 3
dashboard/status-mesh-render.json.in

@@ -361,10 +361,10 @@
     "name" : "regex",
     "options" : [
     ],
-    "query" : "label_values(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh{node_id=\"[[mesh_id]]\"},members)",
+    "query" : "query_result(max(max_over_time(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh{node_id=\"[[mesh_id]]\"}[1d])) by (members) == scalar(max(max_over_time(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh{node_id=\"[[mesh_id]]\"}[1d]))))",
     "refresh" : 2,
-    "regex" : "",
-    "sort" : 1,
+    "regex" : "/.*members=\"([^\"]+)\"./",
+    "sort" : 0,
     "tagValuesQuery" : "",
     "tags" : [
     ],

+ 3 - 3
dashboard/status-mesh.json.in

@@ -361,10 +361,10 @@
     "name" : "regex",
     "options" : [
     ],
-    "query" : "label_values(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh{node_id=\"[[mesh_id]]\"},members)",
+    "query" : "query_result(max(max_over_time(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh{node_id=\"[[mesh_id]]\"}[1d])) by (members) == scalar(max(max_over_time(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh{node_id=\"[[mesh_id]]\"}[1d]))))",
     "refresh" : 2,
-    "regex" : "",
-    "sort" : 1,
+    "regex" : "/.*members=\"([^\"]+)\"./",
+    "sort" : 0,
     "tagValuesQuery" : "",
     "tags" : [
     ],