From 70db1b22609202893858d8434b000af5d6468764 Mon Sep 17 00:00:00 2001 From: mphanias <121247041+mphanias@users.noreply.github.com> Date: Wed, 8 Nov 2023 13:07:58 +0530 Subject: [PATCH] OM140 - 7.0 changes for unique data usgae (#85) modified queries according to the 7.0 stat and metrics added all-cluster master-object and unique-usage-bytes view which are all connected to a prometheus instance --- config/grafana/dashboards/alertsview.json | 362 +++++++++++----------- 1 file changed, 182 insertions(+), 180 deletions(-) diff --git a/config/grafana/dashboards/alertsview.json b/config/grafana/dashboards/alertsview.json index 8d1e7dd..dc31123 100644 --- a/config/grafana/dashboards/alertsview.json +++ b/config/grafana/dashboards/alertsview.json @@ -71,7 +71,7 @@ "mode": "absolute", "steps": [ { - "color": "#750310", + "color": "red", "value": null } ] @@ -109,7 +109,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "count(ALERTS{job=\"$job_name\", cluster_name=~\"$cluster|$^\", service=~\"$node|$^\", severity=~\"critical\", alertstate=~\"$state|$^\"}) ", + "expr": "count(ALERTS{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\", severity=~\"critical\", alertstate=~\"$state|$^\"}) ", "instant": true, "legendFormat": "__auto", "range": false, @@ -130,7 +130,7 @@ "mode": "thresholds" }, "mappings": [], - "noValue": "0", + "noValue": "None", "thresholds": { "mode": "absolute", "steps": [ @@ -172,7 +172,7 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "count(ALERTS{job=\"$job_name\", cluster_name=~\"$cluster|$^\", service=~\"$node|$^\", severity=~\"error\", alertstate=~\"$state\"}) ", + "expr": "count(ALERTS{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\", severity=~\"error\", alertstate=~\"$state\"}) ", "legendFormat": "__auto", "range": true, "refId": "A" @@ -234,7 +234,7 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "count(ALERTS{job=\"$job_name\", cluster_name=~\"$cluster|$^\", service=~\"$node|$^\", severity=~\"warn\", alertstate=~\"$state\"}) ", + "expr": "count(ALERTS{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\", severity=~\"warn\", alertstate=~\"$state\"}) ", "legendFormat": "__auto", "range": true, "refId": "A" @@ -300,7 +300,7 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "count(ALERTS{job=\"$job_name\", cluster_name=~\"$cluster_name|$^\", service=~\"$node|$^\", severity=~\"info\", alertstate=~\"$state\"}) ", + "expr": "count(ALERTS{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\", severity=~\"info\", alertstate=~\"$state\"}) ", "legendFormat": "__auto", "range": true, "refId": "A" @@ -345,7 +345,7 @@ "mode": "absolute", "steps": [ { - "color": "#750310", + "color": "red", "value": null } ] @@ -532,7 +532,8 @@ "mode": "absolute", "steps": [ { - "color": "#FA6400" + "color": "#FA6400", + "value": null } ] } @@ -703,7 +704,7 @@ "type": "row" }, { - "collapsed": false, + "collapsed": true, "gridPos": { "h": 1, "w": 24, @@ -711,198 +712,199 @@ "y": 12 }, "id": 16, - "panels": [], - "title": "Warnings", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "displayMode": "color-background-solid", - "inspect": false + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, - "mappings": [], - "noValue": "None", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "dark-yellow", - "value": null + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "color-background-solid", + "inspect": false + }, + "mappings": [], + "noValue": "None", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-yellow", + "value": null + } + ] } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "job" }, - "properties": [ + "overrides": [ { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "__name__" - }, - "properties": [ + "matcher": { + "id": "byName", + "options": "job" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "severity_desc" - }, - "properties": [ + "matcher": { + "id": "byName", + "options": "__name__" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, { - "id": "custom.width", - "value": 120 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value" - }, - "properties": [ + "matcher": { + "id": "byName", + "options": "severity_desc" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + } + ] + }, { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "latitude" - }, - "properties": [ + "matcher": { + "id": "byName", + "options": "Value" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "longitude" - }, - "properties": [ + "matcher": { + "id": "byName", + "options": "latitude" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "cluster_name" - }, - "properties": [ + "matcher": { + "id": "byName", + "options": "longitude" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, { - "id": "links", - "value": [ + "matcher": { + "id": "byName", + "options": "cluster_name" + }, + "properties": [ { - "targetBlank": true, - "title": "Cluster View", - "url": "/d/dR0dDRHWz/cluster-overview?orgId=1&refresh=1m&var-cluster=${__data.fields.cluster_name}" + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "Cluster View", + "url": "/d/dR0dDRHWz/cluster-overview?orgId=1&refresh=1m&var-cluster=${__data.fields.cluster_name}" + } + ] } ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "service" - }, - "properties": [ + }, { - "id": "links", - "value": [ + "matcher": { + "id": "byName", + "options": "service" + }, + "properties": [ { - "targetBlank": true, - "title": "Node View", - "url": "/d/UcZD2iHAk/node-overview?orgId=1&refresh=1m&var-node=${__data.fields.service}&var-cluster=${__data.fields.cluster_name} " + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "Node View", + "url": "/d/UcZD2iHAk/node-overview?orgId=1&refresh=1m&var-node=${__data.fields.service}&var-cluster=${__data.fields.cluster_name} " + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "service" + }, + "properties": [ + { + "id": "displayName", + "value": "node" } ] } ] }, - { - "matcher": { - "id": "byName", - "options": "service" + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 14, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, - "properties": [ - { - "id": "displayName", - "value": "node" - } - ] - } - ] - }, - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 13 - }, - "id": 14, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.3.2", - "repeatDirection": "h", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" + "showHeader": true, + "sortBy": [] }, - "editorMode": "code", - "exemplar": false, - "expr": "ALERTS{job=\"$job_name\", cluster_name=~\"$cluster|$^\", service=~\"$node|$^\", severity=\"warn\", alertstate=~\"$state|$^\",}", - "format": "table", - "instant": true, - "legendFormat": "{{severity}}", - "range": false, - "refId": "A" + "pluginVersion": "9.3.2", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "ALERTS{job=\"$job_name\", cluster_name=~\"$cluster|$^\", service=~\"$node|$^\", severity=\"warn\", alertstate=~\"$state|$^\",}", + "format": "table", + "instant": true, + "legendFormat": "{{severity}}", + "range": false, + "refId": "A" + } + ], + "type": "table" } ], - "type": "table" + "title": "Warnings", + "type": "row" }, { "collapsed": false, @@ -910,7 +912,7 @@ "h": 1, "w": 24, "x": 0, - "y": 18 + "y": 13 }, "id": 7, "panels": [], @@ -1090,7 +1092,7 @@ "h": 7, "w": 24, "x": 0, - "y": 19 + "y": 14 }, "id": 2, "options": { @@ -1271,6 +1273,6 @@ "timezone": "", "title": "Alerts View", "uid": "hP_Uhx94k", - "version": 3, + "version": 4, "weekStart": "" } \ No newline at end of file