From a267bcc9f42857bca5470e86188460057583922c Mon Sep 17 00:00:00 2001 From: Mikel Alejo Date: Fri, 19 Jul 2024 18:00:31 +0200 Subject: [PATCH] feature: graphs for the production database's health (#2830) Includes a couple of nice graphs for the CPU and memory usage. RHCLOUD-34047 --- ...board-notifications-general.configmap.yaml | 323 +++++++++++++++--- 1 file changed, 272 insertions(+), 51 deletions(-) diff --git a/.rhcicd/grafana/grafana-dashboard-notifications-general.configmap.yaml b/.rhcicd/grafana/grafana-dashboard-notifications-general.configmap.yaml index f34f50a850..97fd98d555 100644 --- a/.rhcicd/grafana/grafana-dashboard-notifications-general.configmap.yaml +++ b/.rhcicd/grafana/grafana-dashboard-notifications-general.configmap.yaml @@ -27,6 +27,7 @@ data: "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, + "id": 930018, "links": [], "liveNow": false, "panels": [ @@ -3906,6 +3907,226 @@ data: "x": 0, "y": 54 }, + "id": 310, + "panels": [], + "title": "Production database's health", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P7E8E1698DF0AC988" + }, + "description": "Shows the CPU usage for the production database.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 55 + }, + "id": 314, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P7E8E1698DF0AC988" + }, + "editorMode": "code", + "expr": "rdsosmetrics_cpuUtilization_total{exported_instance=\"notifications-backend-prod\"}", + "instant": false, + "legendFormat": "Total percentage of CPU usage", + "range": true, + "refId": "Total percentage of CPU usage" + } + ], + "title": "CPU usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P7E8E1698DF0AC988" + }, + "description": "Shows the memory usage for the production database.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "deckbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 55 + }, + "id": 311, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P7E8E1698DF0AC988" + }, + "editorMode": "code", + "expr": "rdsosmetrics_memory_active{exported_instance=\"notifications-backend-prod\"}", + "instant": false, + "legendFormat": "Used memory", + "range": true, + "refId": "Used memory" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P7E8E1698DF0AC988" + }, + "editorMode": "code", + "expr": "rdsosmetrics_memory_total{exported_instance=\"notifications-backend-prod\"}", + "hide": false, + "instant": false, + "legendFormat": "Total available memory", + "range": true, + "refId": "Total available memory" + } + ], + "title": "Memory usage", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 62 + }, "id": 302, "panels": [], "title": "Kafka issues indicators", @@ -3976,7 +4197,7 @@ data: "h": 8, "w": 6, "x": 0, - "y": 55 + "y": 63 }, "id": 217, "options": { @@ -4111,7 +4332,7 @@ data: "h": 8, "w": 6, "x": 6, - "y": 55 + "y": 63 }, "id": 263, "options": { @@ -4242,7 +4463,7 @@ data: "h": 8, "w": 6, "x": 12, - "y": 55 + "y": 63 }, "id": 172, "options": { @@ -4397,7 +4618,7 @@ data: "h": 8, "w": 6, "x": 18, - "y": 55 + "y": 63 }, "id": 218, "options": { @@ -4518,7 +4739,7 @@ data: "h": 8, "w": 6, "x": 0, - "y": 63 + "y": 71 }, "id": 309, "options": { @@ -4560,7 +4781,7 @@ data: "h": 1, "w": 24, "x": 0, - "y": 71 + "y": 79 }, "id": 191, "panels": [], @@ -4628,7 +4849,7 @@ data: "h": 8, "w": 12, "x": 0, - "y": 72 + "y": 80 }, "id": 305, "options": { @@ -4721,7 +4942,7 @@ data: "h": 8, "w": 12, "x": 12, - "y": 72 + "y": 80 }, "id": 306, "options": { @@ -4814,7 +5035,7 @@ data: "h": 8, "w": 12, "x": 0, - "y": 80 + "y": 88 }, "id": 303, "options": { @@ -4907,7 +5128,7 @@ data: "h": 8, "w": 12, "x": 12, - "y": 80 + "y": 88 }, "id": 304, "options": { @@ -5000,7 +5221,7 @@ data: "h": 8, "w": 12, "x": 0, - "y": 88 + "y": 96 }, "id": 307, "options": { @@ -5093,7 +5314,7 @@ data: "h": 8, "w": 12, "x": 0, - "y": 96 + "y": 104 }, "id": 301, "options": { @@ -5131,7 +5352,7 @@ data: "h": 1, "w": 24, "x": 0, - "y": 104 + "y": 112 }, "id": 295, "panels": [], @@ -5202,7 +5423,7 @@ data: "h": 8, "w": 12, "x": 0, - "y": 105 + "y": 113 }, "id": 300, "options": { @@ -5295,7 +5516,7 @@ data: "h": 8, "w": 12, "x": 12, - "y": 105 + "y": 113 }, "id": 298, "options": { @@ -5388,7 +5609,7 @@ data: "h": 8, "w": 12, "x": 0, - "y": 113 + "y": 121 }, "id": 299, "options": { @@ -5426,7 +5647,7 @@ data: "h": 1, "w": 24, "x": 0, - "y": 121 + "y": 129 }, "id": 228, "panels": [], @@ -5496,7 +5717,7 @@ data: "h": 8, "w": 6, "x": 0, - "y": 122 + "y": 130 }, "id": 201, "options": { @@ -5588,7 +5809,7 @@ data: "h": 8, "w": 6, "x": 6, - "y": 122 + "y": 130 }, "id": 254, "options": { @@ -5647,7 +5868,7 @@ data: "h": 8, "w": 6, "x": 12, - "y": 122 + "y": 130 }, "id": 205, "options": { @@ -5687,7 +5908,7 @@ data: "h": 1, "w": 24, "x": 0, - "y": 130 + "y": 138 }, "id": 226, "panels": [], @@ -5785,7 +6006,7 @@ data: "h": 8, "w": 6, "x": 0, - "y": 131 + "y": 139 }, "id": 269, "options": { @@ -5947,7 +6168,7 @@ data: "h": 8, "w": 6, "x": 6, - "y": 131 + "y": 139 }, "id": 267, "options": { @@ -6115,7 +6336,7 @@ data: "h": 8, "w": 6, "x": 12, - "y": 131 + "y": 139 }, "id": 249, "options": { @@ -6282,7 +6503,7 @@ data: "h": 8, "w": 6, "x": 18, - "y": 131 + "y": 139 }, "id": 262, "options": { @@ -6450,7 +6671,7 @@ data: "h": 8, "w": 6, "x": 0, - "y": 139 + "y": 147 }, "id": 248, "options": { @@ -6617,7 +6838,7 @@ data: "h": 8, "w": 6, "x": 6, - "y": 139 + "y": 147 }, "id": 258, "options": { @@ -6785,7 +7006,7 @@ data: "h": 8, "w": 6, "x": 12, - "y": 139 + "y": 147 }, "id": 250, "options": { @@ -6856,7 +7077,7 @@ data: "h": 1, "w": 24, "x": 0, - "y": 147 + "y": 155 }, "id": 179, "panels": [], @@ -6924,7 +7145,7 @@ data: "h": 8, "w": 8, "x": 0, - "y": 148 + "y": 156 }, "id": 174, "options": { @@ -7018,7 +7239,7 @@ data: "h": 8, "w": 8, "x": 8, - "y": 148 + "y": 156 }, "id": 208, "options": { @@ -7112,7 +7333,7 @@ data: "h": 8, "w": 8, "x": 16, - "y": 148 + "y": 156 }, "id": 189, "options": { @@ -7208,7 +7429,7 @@ data: "h": 8, "w": 6, "x": 0, - "y": 156 + "y": 164 }, "id": 113, "options": { @@ -7301,7 +7522,7 @@ data: "h": 8, "w": 6, "x": 6, - "y": 156 + "y": 164 }, "id": 175, "options": { @@ -7394,7 +7615,7 @@ data: "h": 8, "w": 6, "x": 12, - "y": 156 + "y": 164 }, "id": 176, "options": { @@ -7496,7 +7717,7 @@ data: "h": 8, "w": 6, "x": 18, - "y": 156 + "y": 164 }, "id": 177, "options": { @@ -7554,7 +7775,7 @@ data: "h": 1, "w": 24, "x": 0, - "y": 164 + "y": 172 }, "id": 188, "panels": [], @@ -7625,7 +7846,7 @@ data: "h": 8, "w": 6, "x": 0, - "y": 165 + "y": 173 }, "id": 153, "options": { @@ -7736,7 +7957,7 @@ data: "h": 8, "w": 6, "x": 6, - "y": 165 + "y": 173 }, "id": 161, "options": { @@ -7833,7 +8054,7 @@ data: "h": 8, "w": 12, "x": 12, - "y": 165 + "y": 173 }, "id": 252, "links": [ @@ -8031,7 +8252,7 @@ data: "h": 8, "w": 6, "x": 0, - "y": 173 + "y": 181 }, "id": 280, "options": { @@ -8130,7 +8351,7 @@ data: "h": 8, "w": 6, "x": 6, - "y": 173 + "y": 181 }, "id": 281, "options": { @@ -8251,7 +8472,7 @@ data: "h": 8, "w": 12, "x": 12, - "y": 173 + "y": 181 }, "id": 276, "options": { @@ -8449,7 +8670,7 @@ data: "h": 8, "w": 6, "x": 0, - "y": 181 + "y": 189 }, "id": 293, "options": { @@ -8546,7 +8767,7 @@ data: "h": 8, "w": 6, "x": 6, - "y": 181 + "y": 189 }, "id": 294, "options": { @@ -8589,7 +8810,7 @@ data: "h": 1, "w": 24, "x": 0, - "y": 189 + "y": 197 }, "id": 24, "panels": [], @@ -8663,7 +8884,7 @@ data: "h": 9, "w": 8, "x": 0, - "y": 190 + "y": 198 }, "id": 22, "options": { @@ -8755,7 +8976,7 @@ data: "h": 9, "w": 16, "x": 8, - "y": 190 + "y": 198 }, "heatmap": {}, "hideZeroBuckets": false, @@ -8927,7 +9148,7 @@ data: "h": 8, "w": 24, "x": 0, - "y": 199 + "y": 207 }, "id": 85, "options": { @@ -9005,7 +9226,7 @@ data: "list": [ { "current": { - "selected": true, + "selected": false, "text": "crcs02ue1-prometheus", "value": "crcs02ue1-prometheus" }, @@ -9070,7 +9291,7 @@ data: "timezone": "", "title": "Notifications Dashboard", "uid": "KQIVyFuMk", - "version": 2, + "version": 1, "weekStart": "" } kind: ConfigMap