From cda3aaef6a585cef82a4217dd3aadcd662ee0a3b Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 5 Jan 2025 20:46:21 -0600 Subject: [PATCH] adjust layout --- dashboards/service/speedtest-exporter.json | 281 ++++++++++++--------- 1 file changed, 155 insertions(+), 126 deletions(-) diff --git a/dashboards/service/speedtest-exporter.json b/dashboards/service/speedtest-exporter.json index dad153e..8b06976 100644 --- a/dashboards/service/speedtest-exporter.json +++ b/dashboards/service/speedtest-exporter.json @@ -24,7 +24,7 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 209, + "id": 64, "links": [], "panels": [ { @@ -74,8 +74,8 @@ "overrides": [] }, "gridPos": { - "h": 3, - "w": 12, + "h": 4, + "w": 4, "x": 0, "y": 0 }, @@ -112,82 +112,6 @@ "title": "Status of the Speedtest-Exporter", "type": "stat" }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "description": "ServerID of the last test done", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 15, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "value", - "wideLayout": true - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "speedtest_server_id{instance=\"$instance\", job=\"$job\"}", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "ServerID (Last test done)", - "type": "stat" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 3 - }, - "id": 8, - "panels": [], - "title": "Gauges", - "type": "row" - }, { "datasource": { "type": "prometheus", @@ -199,13 +123,26 @@ "mode": "thresholds" }, "mappings": [], + "max": 750, "min": 0, "thresholds": { - "mode": "absolute", + "mode": "percentage", "steps": [ { - "color": "green", + "color": "red", "value": null + }, + { + "color": "#EAB839", + "value": 20 + }, + { + "color": "green", + "value": 40 + }, + { + "color": "blue", + "value": 100 } ] }, @@ -215,9 +152,9 @@ }, "gridPos": { "h": 8, - "w": 6, - "x": 0, - "y": 4 + "w": 5, + "x": 4, + "y": 0 }, "id": 10, "options": { @@ -262,13 +199,26 @@ "mode": "thresholds" }, "mappings": [], + "max": 500, "min": 0, "thresholds": { - "mode": "absolute", + "mode": "percentage", "steps": [ { - "color": "green", + "color": "red", "value": null + }, + { + "color": "#EAB839", + "value": 20 + }, + { + "color": "green", + "value": 40 + }, + { + "color": "blue", + "value": 100 } ] }, @@ -278,9 +228,9 @@ }, "gridPos": { "h": 8, - "w": 6, - "x": 6, - "y": 4 + "w": 5, + "x": 9, + "y": 0 }, "id": 12, "options": { @@ -323,6 +273,7 @@ "color": { "mode": "thresholds" }, + "decimals": 1, "mappings": [], "min": 0, "thresholds": { @@ -331,6 +282,14 @@ { "color": "green", "value": null + }, + { + "color": "#EAB839", + "value": 20 + }, + { + "color": "red", + "value": 50 } ] }, @@ -340,9 +299,9 @@ }, "gridPos": { "h": 8, - "w": 6, - "x": 12, - "y": 4 + "w": 5, + "x": 14, + "y": 0 }, "id": 13, "options": { @@ -385,6 +344,7 @@ "color": { "mode": "thresholds" }, + "decimals": 1, "mappings": [], "min": 0, "thresholds": { @@ -393,6 +353,14 @@ { "color": "green", "value": null + }, + { + "color": "#EAB839", + "value": 20 + }, + { + "color": "red", + "value": 50 } ] }, @@ -402,9 +370,9 @@ }, "gridPos": { "h": 8, - "w": 6, - "x": 18, - "y": 4 + "w": 5, + "x": 19, + "y": 0 }, "id": 11, "options": { @@ -437,13 +405,76 @@ "title": "Jitter", "type": "gauge" }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "ServerID of the last test done", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 4 + }, + "id": 15, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "speedtest_server_id{instance=\"$instance\", job=\"$job\"}", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "ServerID (Last test done)", + "type": "stat" + }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 12 + "y": 8 }, "id": 6, "panels": [], @@ -459,7 +490,8 @@ "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic" + "fixedColor": "green", + "mode": "fixed" }, "custom": { "axisBorderShow": false, @@ -470,7 +502,7 @@ "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", - "fillOpacity": 100, + "fillOpacity": 50, "gradientMode": "opacity", "hideFrom": { "legend": false, @@ -478,8 +510,8 @@ "viz": false }, "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, + "lineInterpolation": "smooth", + "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" @@ -494,17 +526,16 @@ "mode": "off" } }, + "decimals": 0, "mappings": [], + "max": 1000, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] }, @@ -514,9 +545,9 @@ }, "gridPos": { "h": 9, - "w": 24, + "w": 12, "x": 0, - "y": 13 + "y": 9 }, "id": 2, "options": { @@ -556,7 +587,8 @@ "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic" + "fixedColor": "yellow", + "mode": "fixed" }, "custom": { "axisBorderShow": false, @@ -567,7 +599,7 @@ "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", - "fillOpacity": 100, + "fillOpacity": 50, "gradientMode": "opacity", "hideFrom": { "legend": false, @@ -575,8 +607,8 @@ "viz": false }, "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, + "lineInterpolation": "smooth", + "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" @@ -591,17 +623,16 @@ "mode": "off" } }, + "decimals": 0, "mappings": [], + "max": 1000, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] }, @@ -611,9 +642,9 @@ }, "gridPos": { "h": 9, - "w": 24, - "x": 0, - "y": 22 + "w": 12, + "x": 12, + "y": 9 }, "id": 3, "options": { @@ -664,7 +695,7 @@ "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", - "fillOpacity": 100, + "fillOpacity": 50, "gradientMode": "opacity", "hideFrom": { "legend": false, @@ -672,8 +703,8 @@ "viz": false }, "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, + "lineInterpolation": "smooth", + "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" @@ -688,17 +719,16 @@ "mode": "off" } }, + "decimals": 1, "mappings": [], + "max": 100, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] }, @@ -710,7 +740,7 @@ "h": 9, "w": 24, "x": 0, - "y": 31 + "y": 18 }, "id": 4, "options": { @@ -811,6 +841,5 @@ "timezone": "browser", "title": "Speedtest", "uid": "f9eb1a5e6c47a01516ae0ff6d09df71e", - "version": 2, "weekStart": "" }