From bdf4bc2bf5e9890f787c1cc5e574ae47aa856213 Mon Sep 17 00:00:00 2001 From: cybermaggedon Date: Mon, 19 Aug 2024 23:35:16 +0100 Subject: [PATCH] Error is a heatmap (#12) --- grafana/dashboard.json | 81 +++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 49 deletions(-) diff --git a/grafana/dashboard.json b/grafana/dashboard.json index dcd793d0..f1e76f72 100644 --- a/grafana/dashboard.json +++ b/grafana/dashboard.json @@ -149,54 +149,15 @@ }, "fieldConfig": { "defaults": { - "color": { - "fixedColor": "red", - "mode": "fixed" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 21, - "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" } - }, - "displayName": "error rate", - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] } }, "overrides": [] @@ -209,17 +170,39 @@ }, "id": 2, "options": { + "calculate": false, + "cellGap": 1, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": false, + "scale": "exponential", + "scheme": "Oranges", + "steps": 64 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-9 + }, "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "show": true + }, + "rowsFrame": { + "layout": "auto" }, "tooltip": { - "mode": "single", - "sort": "none" + "show": true, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false } }, + "pluginVersion": "10.0.0", "targets": [ { "datasource": { @@ -227,7 +210,7 @@ "uid": "f6b18033-5918-4e05-a1ca-4cb30343b129" }, "editorMode": "builder", - "expr": "rate(processing_count_total{status=\"error\"}[$__rate_interval])", + "expr": "sum by(status) (rate(processing_count_total{status!=\"success\"}[$__rate_interval]))", "format": "time_series", "instant": false, "interval": "", @@ -236,7 +219,7 @@ } ], "title": "Error rate", - "type": "timeseries" + "type": "heatmap" }, { "datasource": { @@ -455,7 +438,7 @@ "type": "nodeGraph" } ], - "refresh": "10s", + "refresh": "5m", "schemaVersion": 38, "style": "dark", "tags": [], @@ -470,6 +453,6 @@ "timezone": "", "title": "Overview", "uid": "b5c8abf8-fe79-496b-b028-10bde917d1f0", - "version": 2, + "version": 3, "weekStart": "" }