Ver Fonte

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

Altlast há 7 anos atrás
pai
commit
4362aee7a1
2 ficheiros alterados com 6 adições e 6 exclusões
  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" : [
     ],