From 428d7807652420062bd877af4202f6d33c8bc507 Mon Sep 17 00:00:00 2001 From: Riku Date: Tue, 21 Jan 2025 13:40:35 +0200 Subject: [PATCH] Latest and greatest dash --- grafana.json | 965 ++++++++++++++++++++++++++++----------------------- 1 file changed, 523 insertions(+), 442 deletions(-) diff --git a/grafana.json b/grafana.json index 2c78bb5..f535316 100644 --- a/grafana.json +++ b/grafana.json @@ -21,426 +21,6 @@ "id": 19, "links": [], "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ddh48acw4qku8a" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 5, - "x": 0, - "y": 0 - }, - "id": 7, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ddh48acw4qku8a" - }, - "editorMode": "code", - "expr": "zte_bandwidth_used_monthly_rx", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Received this month", - "transparent": true, - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ddh48acw4qku8a" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 5, - "x": 5, - "y": 0 - }, - "id": 8, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ddh48acw4qku8a" - }, - "editorMode": "code", - "expr": "zte_bandwidth_used_monthly_tx", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Sent this month", - "transparent": true, - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ddh48acw4qku8a" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "fieldMinMax": true, - "mappings": [], - "thresholds": { - "mode": "percentage", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 80 - }, - { - "color": "dark-red", - "value": 90 - } - ] - }, - "unit": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 4, - "x": 10, - "y": 0 - }, - "id": 6, - "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ddh48acw4qku8a" - }, - "editorMode": "code", - "expr": "zte_bandwidth_tx", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Transmit", - "transparent": true, - "type": "gauge" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ddh48acw4qku8a" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "fieldMinMax": true, - "mappings": [], - "thresholds": { - "mode": "percentage", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 80 - }, - { - "color": "dark-red", - "value": 90 - } - ] - }, - "unit": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 4, - "x": 14, - "y": 0 - }, - "id": 3, - "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ddh48acw4qku8a" - }, - "editorMode": "code", - "expr": "zte_bandwidth_rx", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Receive", - "transparent": true, - "type": "gauge" - }, - { - "datasource": { - "default": true, - "type": "prometheus", - "uid": "ddh48acw4qku8a" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 5, - "x": 0, - "y": 5 - }, - "id": 10, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "/^firmware$/", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ddh48acw4qku8a" - }, - "editorMode": "code", - "expr": "zte_modem_info", - "format": "table", - "instant": true, - "legendFormat": "{{firmware}}", - "range": true, - "refId": "A" - } - ], - "title": "Firmware", - "transparent": true, - "type": "stat" - }, - { - "datasource": { - "default": true, - "type": "prometheus", - "uid": "ddh48acw4qku8a" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 5, - "x": 5, - "y": 5 - }, - "id": 11, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "/^ip_addr$/", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ddh48acw4qku8a" - }, - "editorMode": "code", - "expr": "zte_modem_info", - "format": "table", - "instant": true, - "legendFormat": "{{ip}}", - "range": true, - "refId": "A" - } - ], - "title": "WAN IP", - "transparent": true, - "type": "stat" - }, { "datasource": { "type": "prometheus", @@ -503,10 +83,10 @@ "overrides": [] }, "gridPos": { - "h": 8, - "w": 9, + "h": 9, + "w": 11, "x": 0, - "y": 10 + "y": 0 }, "id": 9, "interval": "120s", @@ -528,6 +108,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -535,7 +116,7 @@ "uid": "ddh48acw4qku8a" }, "editorMode": "code", - "expr": "zte_snr", + "expr": "zte_snr != 0", "instant": false, "legendFormat": "{{band}}", "range": true, @@ -608,10 +189,10 @@ "overrides": [] }, "gridPos": { - "h": 8, - "w": 9, - "x": 9, - "y": 10 + "h": 9, + "w": 11, + "x": 11, + "y": 0 }, "id": 2, "interval": "120s", @@ -633,6 +214,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -713,10 +295,10 @@ "overrides": [] }, "gridPos": { - "h": 8, - "w": 9, + "h": 10, + "w": 11, "x": 0, - "y": 18 + "y": 9 }, "id": 5, "interval": "120s", @@ -738,6 +320,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -819,10 +402,10 @@ "overrides": [] }, "gridPos": { - "h": 8, - "w": 9, - "x": 9, - "y": 18 + "h": 10, + "w": 11, + "x": 11, + "y": 9 }, "id": 12, "interval": "120s", @@ -844,6 +427,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -862,6 +446,282 @@ "transparent": true, "type": "timeseries" }, + { + "datasource": { + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 5, + "x": 0, + "y": 19 + }, + "id": 7, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "editorMode": "code", + "expr": "zte_bandwidth_used_monthly_rx", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Received this month", + "transparent": true, + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 5, + "x": 5, + "y": 19 + }, + "id": 8, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "editorMode": "code", + "expr": "zte_bandwidth_used_monthly_tx", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Sent this month", + "transparent": true, + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "fieldMinMax": true, + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 80 + }, + { + "color": "dark-red", + "value": 90 + } + ] + }, + "unit": "binBps" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 5, + "x": 11, + "y": 19 + }, + "id": 6, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "editorMode": "code", + "expr": "zte_bandwidth_tx", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Transmit", + "transparent": true, + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "fieldMinMax": true, + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 80 + }, + { + "color": "dark-red", + "value": 90 + } + ] + }, + "unit": "binBps" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 5, + "x": 16, + "y": 19 + }, + "id": 3, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "editorMode": "code", + "expr": "zte_bandwidth_rx", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Receive", + "transparent": true, + "type": "gauge" + }, { "datasource": { "type": "prometheus", @@ -928,9 +788,9 @@ }, "gridPos": { "h": 10, - "w": 19, + "w": 21, "x": 0, - "y": 26 + "y": 24 }, "id": 1, "interval": "120s", @@ -952,6 +812,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -983,22 +844,242 @@ "title": "Bandwidth in use", "transparent": true, "type": "timeseries" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 5, + "x": 0, + "y": 34 + }, + "id": 11, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "/^ip_addr$/", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "editorMode": "code", + "expr": "zte_modem_info", + "format": "table", + "instant": true, + "legendFormat": "{{ip}}", + "range": true, + "refId": "A" + } + ], + "title": "WAN IP", + "transparent": true, + "type": "stat" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 9, + "x": 6, + "y": 34 + }, + "id": 10, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "/^firmware$/", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "editorMode": "code", + "expr": "zte_modem_info", + "format": "table", + "instant": true, + "legendFormat": "{{firmware}}", + "range": true, + "refId": "A" + } + ], + "title": "Firmware", + "transparent": true, + "type": "stat" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 5, + "x": 16, + "y": 34 + }, + "id": 13, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "/^apn$/", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ddh48acw4qku8a" + }, + "editorMode": "code", + "expr": "zte_modem_info", + "format": "table", + "instant": true, + "legendFormat": "{{apn}}", + "range": true, + "refId": "A" + } + ], + "title": "APN", + "transparent": true, + "type": "stat" } ], - "refresh": "5m", - "schemaVersion": 39, - "tags": [], + "preload": false, + "refresh": "1m", + "schemaVersion": 40, + "tags": [ + "5g", + "internet" + ], "templating": { "list": [] }, "time": { - "from": "now-15m", + "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "ZTE 5G", "uid": "bdmvny6iizbpcc", - "version": 27, + "version": 39, "weekStart": "" } \ No newline at end of file