From 9e501cd2bf6c41de0aad448976442438a6d58152 Mon Sep 17 00:00:00 2001 From: Curtis McKenzie Date: Sat, 9 Dec 2023 07:42:09 -0500 Subject: [PATCH 1/3] [feature] Added SAS Arke dashboard to Grafana --- CHANGELOG.md | 1 + .../dashboards/viya/sas-arke-dashboard.json | 503 ++++++++++++++++++ 2 files changed, 504 insertions(+) create mode 100644 monitoring/dashboards/viya/sas-arke-dashboard.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 082411ad..507cf717 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * **Metrics** * [CHANGE] Disabled init-chown-data initContainer that started with Grafana. + * [FEATURE] Added a Grafana dashboard that monitors SAS Arke events. * **Logging** * [UPGRADE] Upgraded OpenSearch/OpenSearch Dashboards from 2.8.0 to 2.10.0 diff --git a/monitoring/dashboards/viya/sas-arke-dashboard.json b/monitoring/dashboards/viya/sas-arke-dashboard.json new file mode 100644 index 00000000..8dba9c90 --- /dev/null +++ b/monitoring/dashboards/viya/sas-arke-dashboard.json @@ -0,0 +1,503 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "description": "", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 58, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": 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 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "sum(rate(arke_client_consumed{namespace=\"$namespace\"}[$__rate_interval]))", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "Consumed", + "range": true, + "refId": "A", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "sum(rate(arke_client_produced{namespace=\"$namespace\"}[$__rate_interval]))", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "Produced", + "range": true, + "refId": "B", + "useBackend": false + } + ], + "title": "Total Arke Events Consumed/Produced", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": 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 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 + }, + "id": 2, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "code", + "exemplar": false, + "expr": "sum(arke_client_active_messages{namespace=\"$namespace\"})", + "format": "time_series", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "In flight", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "In-Flight Messages", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": 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 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 8 + }, + "id": 5, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "count(arke_client_consumed{namespace=\"$namespace\"} > 0)", + "instant": false, + "legendFormat": "Clients", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "count(arke_client_produced{namespace=\"$namespace\"} > 0)", + "hide": false, + "instant": false, + "legendFormat": "Producers", + "range": true, + "refId": "B" + } + ], + "title": "Clients Connected", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "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 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "rate(arke_client_consumed{namespace=\"$namespace\"}[$__rate_interval]) > 0", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{ClientIdentifier}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Arke Events Consumed/Produced by Client", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": "(\\w*-\\w*)(-\\w*)+", + "renamePattern": "$1" + } + } + ], + "type": "timeseries" + } + ], + "refresh": "", + "schemaVersion": 38, + "style": "dark", + "tags": [ + "sas-viya" + ], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "d69195", + "value": "d69195" + }, + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "definition": "label_values( arke_request_total,namespace)", + "hide": 0, + "includeAll": false, + "label": "namespace", + "multi": false, + "name": "namespace", + "options": [], + "query": { + "query": "label_values( arke_request_total,namespace)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "SAS Arke", + "uid": "cddd6473-bf80-437a-9b40-cfd16a16740a", + "version": 10, + "weekStart": "" + } \ No newline at end of file From af9ba82971152e4e0e02bc2b71a801dfbf5304c0 Mon Sep 17 00:00:00 2001 From: Curtis McKenzie Date: Mon, 11 Dec 2023 09:22:44 -0500 Subject: [PATCH 2/3] Removed explicit mentions of Prometheus and namespaces --- .../dashboards/viya/sas-arke-dashboard.json | 58 ++++--------------- 1 file changed, 11 insertions(+), 47 deletions(-) diff --git a/monitoring/dashboards/viya/sas-arke-dashboard.json b/monitoring/dashboards/viya/sas-arke-dashboard.json index 8dba9c90..a3fe2fab 100644 --- a/monitoring/dashboards/viya/sas-arke-dashboard.json +++ b/monitoring/dashboards/viya/sas-arke-dashboard.json @@ -25,7 +25,7 @@ "panels": [ { "datasource": { - "type": "prometheus", + "datasource": "$datasource", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { @@ -100,11 +100,7 @@ } }, "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, + "datasource": "prometheus", "disableTextWrap": false, "editorMode": "code", "expr": "sum(rate(arke_client_consumed{namespace=\"$namespace\"}[$__rate_interval]))", @@ -118,10 +114,7 @@ "useBackend": false }, { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, + "datasource": "$datasource", "disableTextWrap": false, "editorMode": "code", "expr": "sum(rate(arke_client_produced{namespace=\"$namespace\"}[$__rate_interval]))", @@ -139,10 +132,7 @@ "type": "timeseries" }, { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, + "datasource": "$datasource", "fieldConfig": { "defaults": { "color": { @@ -216,10 +206,7 @@ }, "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, + "datasource": "$datasource", "disableTextWrap": false, "editorMode": "code", "exemplar": false, @@ -238,10 +225,7 @@ "type": "timeseries" }, { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, + "datasource": "$datasource", "fieldConfig": { "defaults": { "color": { @@ -315,10 +299,7 @@ }, "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, + "datasource": "$datasource", "editorMode": "code", "expr": "count(arke_client_consumed{namespace=\"$namespace\"} > 0)", "instant": false, @@ -327,10 +308,7 @@ "refId": "A" }, { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, + "datasource": "$datasource", "editorMode": "code", "expr": "count(arke_client_produced{namespace=\"$namespace\"} > 0)", "hide": false, @@ -344,10 +322,7 @@ "type": "timeseries" }, { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, + "datasource": "$datasource", "fieldConfig": { "defaults": { "color": { @@ -424,10 +399,7 @@ }, "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, + "datasource": "prometheus", "disableTextWrap": false, "editorMode": "code", "expr": "rate(arke_client_consumed{namespace=\"$namespace\"}[$__rate_interval]) > 0", @@ -462,15 +434,7 @@ "templating": { "list": [ { - "current": { - "selected": false, - "text": "d69195", - "value": "d69195" - }, - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, + "datasource": "$datasource", "definition": "label_values( arke_request_total,namespace)", "hide": 0, "includeAll": false, From c3d4b260b440cfaba00fdba960117ab990a9dc8b Mon Sep 17 00:00:00 2001 From: gsmith-sas <65406958+gsmith-sas@users.noreply.github.com> Date: Mon, 11 Dec 2023 18:16:50 -0500 Subject: [PATCH 3/3] Revised Grafana dashboard --- .../dashboards/viya/sas-arke-dashboard.json | 734 ++++++++---------- 1 file changed, 309 insertions(+), 425 deletions(-) diff --git a/monitoring/dashboards/viya/sas-arke-dashboard.json b/monitoring/dashboards/viya/sas-arke-dashboard.json index a3fe2fab..b9edcf63 100644 --- a/monitoring/dashboards/viya/sas-arke-dashboard.json +++ b/monitoring/dashboards/viya/sas-arke-dashboard.json @@ -1,467 +1,351 @@ { "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] }, - "description": "", "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 58, + "id": 108, "links": [], "liveNow": false, "panels": [ - { - "datasource": { - "datasource": "$datasource", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" + { + "datasource": "Prometheus", + "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 + } + ] + } + }, + "overrides": [] }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null + "id": 1, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - { - "color": "red", - "value": 80 + "tooltip": { + "mode": "single", + "sort": "none" } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 1, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - "datasource": "prometheus", - "disableTextWrap": false, - "editorMode": "code", - "expr": "sum(rate(arke_client_consumed{namespace=\"$namespace\"}[$__rate_interval]))", - "fullMetaSearch": false, - "hide": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "Consumed", - "range": true, - "refId": "A", - "useBackend": false - }, - { - "datasource": "$datasource", - "disableTextWrap": false, - "editorMode": "code", - "expr": "sum(rate(arke_client_produced{namespace=\"$namespace\"}[$__rate_interval]))", - "fullMetaSearch": false, - "hide": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "Produced", - "range": true, - "refId": "B", - "useBackend": false - } - ], - "title": "Total Arke Events Consumed/Produced", - "type": "timeseries" - }, - { - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": 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": [ + "targets": [ { - "color": "green", - "value": null + "datasource": "Prometheus", + "editorMode": "code", + "expr": "sum(rate(arke_client_consumed{namespace=\"$namespace\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "Consumed", + "range": true, + "refId": "A" }, { - "color": "red", - "value": 80 + "datasource": "Prometheus", + "editorMode": "code", + "expr": "sum(rate(arke_client_produced{namespace=\"$namespace\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "Produced", + "range": true, + "refId": "B" } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } + ], + "title": "Total Arke Events Consumed/Produced", + "type": "timeseries" }, - "targets": [ - { - "datasource": "$datasource", - "disableTextWrap": false, - "editorMode": "code", - "exemplar": false, - "expr": "sum(arke_client_active_messages{namespace=\"$namespace\"})", - "format": "time_series", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "In flight", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "In-Flight Messages", - "type": "timeseries" - }, - { - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" + { + "datasource": "Prometheus", + "description": "", + "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 + } + ] + } + }, + "overrides": [] }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null + "id": 2, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ { - "color": "red", - "value": 80 + "datasource": "Prometheus", + "editorMode": "code", + "expr": "sum(arke_client_active_messages{namespace=\"$namespace\"})", + "hide": false, + "instant": false, + "legendFormat": "In flight", + "range": true, + "refId": "A" } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 + ], + "title": "In-Flight Messages", + "type": "timeseries" }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": "$datasource", - "editorMode": "code", - "expr": "count(arke_client_consumed{namespace=\"$namespace\"} > 0)", - "instant": false, - "legendFormat": "Clients", - "range": true, - "refId": "A" - }, - { - "datasource": "$datasource", - "editorMode": "code", - "expr": "count(arke_client_produced{namespace=\"$namespace\"} > 0)", - "hide": false, - "instant": false, - "legendFormat": "Producers", - "range": true, - "refId": "B" - } - ], - "title": "Clients Connected", - "type": "timeseries" - }, - { - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" + { + "datasource": "Prometheus", + "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 + } + ] + } + }, + "overrides": [] }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineStyle": { - "fill": "solid" - }, - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 8 }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null + "id": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ { - "color": "red", - "value": 80 + "datasource": "Prometheus", + "editorMode": "code", + "expr": "rate(arke_client_consumed{namespace=\"$namespace\"}[$__rate_interval]) > 0", + "hide": false, + "instant": false, + "legendFormat": "{{ClientIdentifier}}", + "range": true, + "refId": "A" } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": "prometheus", - "disableTextWrap": false, - "editorMode": "code", - "expr": "rate(arke_client_consumed{namespace=\"$namespace\"}[$__rate_interval]) > 0", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "{{ClientIdentifier}}", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Arke Events Consumed/Produced by Client", - "transformations": [ - { - "id": "renameByRegex", - "options": { - "regex": "(\\w*-\\w*)(-\\w*)+", - "renamePattern": "$1" - } - } - ], - "type": "timeseries" - } + ], + "title": "Arke Events Consumed by Client", + "type": "timeseries" + } ], "refresh": "", "schemaVersion": 38, - "style": "dark", "tags": [ - "sas-viya" + "sas-viya" ], "templating": { - "list": [ - { - "datasource": "$datasource", - "definition": "label_values( arke_request_total,namespace)", - "hide": 0, - "includeAll": false, - "label": "namespace", - "multi": false, - "name": "namespace", - "options": [], - "query": { - "query": "label_values( arke_request_total,namespace)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - } - ] + "list": [ + { + "current": { + "selected": false, + "text": "d73310", + "value": "d73310" + }, + "datasource": "Prometheus", + "definition": "label_values(arke_request_total,namespace)", + "hide": 0, + "includeAll": false, + "label": "namespace", + "multi": false, + "name": "namespace", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(arke_request_total,namespace)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] }, "time": { - "from": "now-6h", - "to": "now" + "from": "now-6h", + "to": "now" }, "timepicker": {}, "timezone": "", - "title": "SAS Arke", - "uid": "cddd6473-bf80-437a-9b40-cfd16a16740a", - "version": 10, + "title": "SAS Arke Dashboard", + "uid": "c4c459e9-a594-455b-90dd-a9ec0c8f3e22", + "version": 2, "weekStart": "" - } \ No newline at end of file +}