From 8c2206afb63e24a55971f4e22d3a0b060ebae5eb Mon Sep 17 00:00:00 2001 From: SleepingCrows Date: Wed, 31 Jul 2024 21:16:09 -0400 Subject: [PATCH] Add Policy Rate Average Visualization --- dittodash.json | 121 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 118 insertions(+), 3 deletions(-) diff --git a/dittodash.json b/dittodash.json index 08e7731..2a1e18a 100644 --- a/dittodash.json +++ b/dittodash.json @@ -142,7 +142,7 @@ }, "gridPos": { "h": 8, - "w": 12, + "w": 6, "x": 0, "y": 1 }, @@ -180,6 +180,121 @@ "title": "Firehose Rate (5m)", "type": "timeseries" }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "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": [ + { + "matcher": { + "id": "byName", + "options": "sum(rate(firehose_events_total[1m0s]))" + }, + "properties": [ + { + "id": "displayName", + "value": "Firehose Rate" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 6, + "y": 1 + }, + "id": 11, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "disableTextWrap": false, + "editorMode": "builder", + "expr": "rate(policy_events_total[5m])", + "fullMetaSearch": false, + "includeNullMetadata": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Policy Rate (5m)", + "type": "timeseries" + }, { "datasource": { "type": "prometheus", @@ -916,14 +1031,14 @@ "type": "timeseries" } ], - "refresh": "auto", + "refresh": "5s", "schemaVersion": 39, "tags": [], "templating": { "list": [] }, "time": { - "from": "now-12h", + "from": "now-30m", "to": "now" }, "timepicker": {},