From 772cee48f6a2d0094fabcbbf9c846974d94b6afc Mon Sep 17 00:00:00 2001 From: Jim Carroll Date: Fri, 14 Jun 2024 07:46:56 +1200 Subject: [PATCH] updates to internet connection dashboard (#599) * fix: update Uptime panel plugin --- .../dashboards/internet-connection.json | 211 +++++++++--------- 1 file changed, 102 insertions(+), 109 deletions(-) diff --git a/internet-monitoring/grafana/provisioning/dashboards/internet-connection.json b/internet-monitoring/grafana/provisioning/dashboards/internet-connection.json index 0a2cca97..9219d8ad 100644 --- a/internet-monitoring/grafana/provisioning/dashboards/internet-connection.json +++ b/internet-monitoring/grafana/provisioning/dashboards/internet-connection.json @@ -18,8 +18,9 @@ ] }, "editable": true, + "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": null, + "id": 1, "links": [], "panels": [ { @@ -54,9 +55,10 @@ "y": 0 }, "id": 8, - "links": [], "maxDataPoints": 10000, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -67,9 +69,10 @@ }, "showThresholdLabels": false, "showThresholdMarkers": true, + "sizing": "auto", "text": {} }, - "pluginVersion": "9.3.2", + "pluginVersion": "10.4.1", "targets": [ { "datasource": "prometheus", @@ -85,7 +88,6 @@ "type": "gauge" }, { - "cacheTimeout": null, "datasource": "prometheus", "fieldConfig": { "defaults": { @@ -117,10 +119,10 @@ "y": 0 }, "id": 10, - "interval": null, - "links": [], "maxDataPoints": 10000, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -131,9 +133,10 @@ }, "showThresholdLabels": false, "showThresholdMarkers": true, + "sizing": "auto", "text": {} }, - "pluginVersion": "9.3.2", + "pluginVersion": "10.4.1", "targets": [ { "datasource": "prometheus", @@ -149,7 +152,6 @@ "type": "gauge" }, { - "cacheTimeout": null, "datasource": "prometheus", "fieldConfig": { "defaults": { @@ -182,10 +184,10 @@ "y": 0 }, "id": 12, - "interval": null, - "links": [], "maxDataPoints": 10000, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -196,9 +198,10 @@ }, "showThresholdLabels": false, "showThresholdMarkers": true, + "sizing": "auto", "text": {} }, - "pluginVersion": "9.3.2", + "pluginVersion": "10.4.1", "targets": [ { "datasource": "prometheus", @@ -222,6 +225,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -236,6 +240,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 0, "pointSize": 5, @@ -277,7 +282,6 @@ "y": 9 }, "id": 6, - "links": [], "maxDataPoints": 10000, "options": { "graph": {}, @@ -293,7 +297,6 @@ } }, "pluginVersion": "7.4.5", - "repeat": null, "targets": [ { "datasource": "prometheus", @@ -313,45 +316,55 @@ "refId": "B" } ], - "timeFrom": null, - "timeShift": null, "title": "Speedtest Graph", "type": "timeseries" }, { - "cards": { - "cardHSpacing": 2, - "cardMinWidth": 5, - "cardRound": null, - "cardVSpacing": 2 - }, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateGnYlRd", - "defaultColor": "#757575", - "exponent": 0.5, - "max": 1, - "min": 0, - "mode": "discrete", - "thresholds": [ - { - "$$hashKey": "object:68", - "color": "#37872D", - "tooltip": "Up", - "value": "1" - }, - { - "$$hashKey": "object:72", - "color": "#C4162A", - "tooltip": "Down", - "value": "0" - } - ] - }, "datasource": "prometheus", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "fillOpacity": 70, + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineWidth": 0, + "spanNulls": false + }, + "fieldMinMax": false, + "mappings": [ + { + "options": { + "0": { + "color": "semi-dark-red", + "index": 0, + "text": "Down" + }, + "1": { + "color": "green", + "index": 1, + "text": "Up" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, "overrides": [] }, "gridPos": { @@ -360,18 +373,21 @@ "x": 12, "y": 9 }, - "hideBranding": false, - "highlightCards": true, - "id": 14, - "legend": { - "show": false - }, - "links": [], - "nullPointMode": "as empty", - "pageSize": 15, - "seriesFilterIndex": -1, - "statusmap": { - "ConfigVersion": "v1" + "id": 21, + "options": { + "alignValue": "left", + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "mergeValues": true, + "rowHeight": 0.9, + "showValue": "auto", + "tooltip": { + "mode": "single", + "sort": "none" + } }, "targets": [ { @@ -385,31 +401,7 @@ } ], "title": "Uptime", - "tooltip": { - "extraInfo": "", - "freezeOnClick": true, - "items": [], - "show": true, - "showExtraInfo": false, - "showItems": false - }, - "type": "flant-statusmap-panel", - "useMax": true, - "usingPagination": false, - "xAxis": { - "show": true - }, - "yAxis": { - "maxWidth": -1, - "minWidth": -1, - "show": true - }, - "yAxisSort": "metrics", - "yLabel": { - "delimiter": "", - "labelTemplate": "", - "usingSplitLabel": false - } + "type": "state-timeline" }, { "aliasColors": {}, @@ -423,6 +415,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -438,6 +431,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -481,7 +475,6 @@ "y": 18 }, "id": 4, - "links": [], "options": { "legend": { "calcs": [], @@ -518,6 +511,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -532,6 +526,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -573,7 +568,6 @@ "y": 27 }, "id": 20, - "links": [], "options": { "legend": { "calcs": [], @@ -611,6 +605,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -626,6 +621,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -647,8 +643,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -664,10 +659,9 @@ "h": 9, "w": 24, "x": 0, - "y": 27 + "y": 36 }, "id": 18, - "links": [], "options": { "legend": { "calcs": [], @@ -705,6 +699,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -720,6 +715,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -741,8 +737,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -758,10 +753,9 @@ "h": 9, "w": 24, "x": 0, - "y": 36 + "y": 45 }, "id": 17, - "links": [], "options": { "legend": { "calcs": [], @@ -799,6 +793,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -814,6 +809,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -835,8 +831,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -852,10 +847,9 @@ "h": 9, "w": 24, "x": 0, - "y": 45 + "y": 54 }, "id": 16, - "links": [], "options": { "legend": { "calcs": [], @@ -893,6 +887,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -908,6 +903,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -929,8 +925,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -946,10 +941,9 @@ "h": 9, "w": 24, "x": 0, - "y": 54 + "y": 63 }, "id": 15, - "links": [], "options": { "legend": { "calcs": [], @@ -987,6 +981,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -1002,6 +997,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -1023,8 +1019,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1040,10 +1035,9 @@ "h": 9, "w": 24, "x": 0, - "y": 63 + "y": 72 }, "id": 19, - "links": [], "options": { "legend": { "calcs": [], @@ -1074,9 +1068,8 @@ "type": "timeseries" } ], - "refresh": "5m", - "schemaVersion": 37, - "style": "dark", + "refresh": "", + "schemaVersion": 39, "tags": [ "speedtest", "ping" @@ -1116,6 +1109,6 @@ "timezone": "browser", "title": "Internet connection", "uid": "o9mIe_Aik", - "version": 13, + "version": 10, "weekStart": "" } \ No newline at end of file