From 2be94f3e65093a31638510c81c16f330ce43901a Mon Sep 17 00:00:00 2001 From: Muzammil Date: Thu, 4 Apr 2024 15:04:32 +0500 Subject: [PATCH] fix: upgrade queries in performance-troubleshooting-dashboarding for offending processes (#617) Upgrade queries in performance-troubleshooting-dashboarding for offending processes --- ...dashboard-performance-troubleshooting.json | 48 ++++++++++++------- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/monitoring/dashboards/mojaloop/dashboard-performance-troubleshooting.json b/monitoring/dashboards/mojaloop/dashboard-performance-troubleshooting.json index b10006dfa..dba95fa34 100644 --- a/monitoring/dashboards/mojaloop/dashboard-performance-troubleshooting.json +++ b/monitoring/dashboards/mojaloop/dashboard-performance-troubleshooting.json @@ -542,7 +542,7 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "(\n sum(rate(namedprocess_namegroup_cpu_seconds_total[1m])) by (groupname,nodename)\n / on (nodename) group_left\n instance_nodename:node_cpu_seconds:rate1m \n) > 0.7", + "expr": "(\n sum(rate(namedprocess_namegroup_cpu_seconds_total[1m])) by (groupname,nodename)\n / on (nodename) group_left\n sum(rate(node_cpu_seconds_total[1m])) by (nodename)\n) > 0.7", "hide": false, "instant": false, "legendFormat": "{{nodename}}:{{groupname}}", @@ -642,7 +642,7 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "(\n namedprocess_namegroup_memory_bytes{memtype=\"resident\"} \n / on (nodename) group_left\n instance_nodename:node_memory_MemTotal_bytes\n) > 0.7\n", + "expr": "(\n namedprocess_namegroup_memory_bytes{memtype=\"resident\"} \n / on (nodename) group_left\n node_memory_MemTotal_bytes\n) > 0.7\n", "instant": false, "legendFormat": "{{nodename}}:{{groupname}}", "range": true, @@ -824,7 +824,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -945,7 +946,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1039,7 +1041,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1133,7 +1136,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1228,7 +1232,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1324,7 +1329,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1419,7 +1425,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1516,7 +1523,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1610,7 +1618,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1707,7 +1716,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1801,7 +1811,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1897,7 +1908,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1982,7 +1994,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -2067,7 +2080,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -2156,7 +2170,7 @@ "timepicker": {}, "timezone": "", "title": "Performance Troubleshooting", - "uid": "f1068daf-16a2-4e52-9a57-1a6620925845-01", + "uid": "f1068daf-16a2-4e52-9a57-1a6620925845-02", "version": 1, "weekStart": "" }