From 59508d5d0c391370f746cf9911199fd155a276fc Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Sat, 10 Apr 2021 16:42:23 -0500 Subject: [PATCH] Use discrete instead of spectrum for uptime graph. --- .../dashboards/ping-speed-stats.json | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/grafana/provisioning/dashboards/ping-speed-stats.json b/grafana/provisioning/dashboards/ping-speed-stats.json index 9816cff..b668860 100644 --- a/grafana/provisioning/dashboards/ping-speed-stats.json +++ b/grafana/provisioning/dashboards/ping-speed-stats.json @@ -341,8 +341,21 @@ "exponent": 0.5, "max": 1, "min": 0, - "mode": "spectrum", - "thresholds": [] + "mode": "discrete", + "thresholds": [ + { + "$$hashKey": "object:68", + "color": "#37872D", + "tooltip": "Up", + "value": "1" + }, + { + "$$hashKey": "object:72", + "color": "#C4162A", + "tooltip": "Down", + "value": "0" + } + ] }, "datasource": "prometheus", "fieldConfig": { @@ -549,5 +562,5 @@ "timezone": "browser", "title": "Internet connection", "uid": "o9mIe_Aik", - "version": 1 + "version": 2 } \ No newline at end of file