From bcbb493626b064ef6d9c15d756b8608f5b00741d Mon Sep 17 00:00:00 2001 From: Cyber MacGeddon Date: Thu, 18 Jul 2024 19:25:10 +0100 Subject: [PATCH] Add backlog visual --- grafana/dashboard.json | 99 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 96 insertions(+), 3 deletions(-) diff --git a/grafana/dashboard.json b/grafana/dashboard.json index 8ed62fe6..a14469c3 100644 --- a/grafana/dashboard.json +++ b/grafana/dashboard.json @@ -18,7 +18,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 1, + "id": 2, "links": [], "liveNow": false, "panels": [ @@ -276,6 +276,99 @@ ], "title": "Request count", "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "f6b18033-5918-4e05-a1ca-4cb30343b129" + }, + "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": 11, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 5, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "f6b18033-5918-4e05-a1ca-4cb30343b129" + }, + "editorMode": "builder", + "expr": "pulsar_msg_backlog", + "instant": false, + "range": true, + "refId": "A" + } + ], + "title": "Pub/sub backlog", + "type": "timeseries" } ], "refresh": "10s", @@ -286,13 +379,13 @@ "list": [] }, "time": { - "from": "now-6h", + "from": "now-3h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Overview", "uid": "b5c8abf8-fe79-496b-b028-10bde917d1f0", - "version": 7, + "version": 2, "weekStart": "" }