From d6fc1a4589ea9b1e5bfb7580333b71fa95ec5d14 Mon Sep 17 00:00:00 2001 From: Sami Haahtinen Date: Sat, 24 Jul 2021 17:56:19 +0100 Subject: [PATCH] Update dashboard to use instance labels This change also updates dashboard to use new panels and refreshes a lot of the queries --- resources/grafana/connectbox.json | 3461 ++++++++++++++--------------- 1 file changed, 1654 insertions(+), 1807 deletions(-) diff --git a/resources/grafana/connectbox.json b/resources/grafana/connectbox.json index 5122551..abe0670 100644 --- a/resources/grafana/connectbox.json +++ b/resources/grafana/connectbox.json @@ -7,13 +7,6 @@ "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" - }, - { - "name": "VAR_PORT", - "type": "constant", - "label": "port", - "value": "9705", - "description": "" } ], "__requires": [ @@ -27,13 +20,7 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "6.7.2" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" + "version": "8.0.3" }, { "type": "datasource", @@ -43,14 +30,14 @@ }, { "type": "panel", - "id": "singlestat", - "name": "Singlestat", + "id": "stat", + "name": "Stat", "version": "" }, { "type": "panel", - "id": "stat", - "name": "Stat", + "id": "timeseries", + "name": "Time series", "version": "" } ], @@ -73,307 +60,382 @@ "gnetId": 12078, "graphTooltip": 0, "id": null, - "iteration": 1587237387518, + "iteration": 1627144812636, "links": [], "panels": [ + { + "collapsed": false, + "datasource": "${DS_PROMETHEUS}", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 24, + "panels": [], + "repeat": "instance", + "title": "Device overview for $instance", + "type": "row" + }, { "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], "datasource": "${DS_PROMETHEUS}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 0, - "y": 0 + "y": 1 }, "id": 2, "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:566", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:567", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "pluginVersion": "6.7.2", - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "$$hashKey": "object:597", - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "name" + }, + "pluginVersion": "8.0.3", "targets": [ { - "expr": "connectbox_provisioning_status{instance=\"$host:$port\"} == 1", + "exemplar": true, + "expr": "connectbox_provisioning_status{instance=~\"$instance\"} == 1", "instant": true, "interval": "", "legendFormat": "{{ connectbox_provisioning_status }}", "refId": "A" } ], - "thresholds": "", "timeFrom": null, "timeShift": null, "title": "Provisioning Status", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:569", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "name" + "type": "stat" }, { "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], "datasource": "${DS_PROMETHEUS}", - "format": "dtdurations", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 4, - "y": 0 + "y": 1 }, - "id": 32, + "id": 20, "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:1235", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:1236", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "pluginVersion": "6.7.2", - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "name" + }, + "pluginVersion": "8.0.3", "targets": [ { - "expr": "connectbox_uptime_seconds{instance=\"$host:$port\"}", + "expr": "connectbox_device_info{instance=~\"$instance\"}", "instant": true, "interval": "", - "intervalFactor": 2, - "legendFormat": "", + "legendFormat": "{{ operator_id }}", "refId": "A" } ], - "thresholds": "", "timeFrom": null, "timeShift": null, - "title": "Uptime", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:1238", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "title": "ISP", + "type": "stat" }, { + "cacheTimeout": null, "datasource": "${DS_PROMETHEUS}", - "description": "Assuming 256QAM modulation, [30dB is the minimum, 33dB or higher is recommended](https://pickmymodem.com/signal-levels-docsis-3-03-1-cable-modem/).", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "dtdurations" + }, + "overrides": [] + }, "gridPos": { "h": 4, "w": 4, "x": 8, - "y": 0 + "y": 1 }, - "id": 51, + "id": 32, + "interval": null, + "links": [], + "maxDataPoints": 100, "options": { - "colorMode": "value", - "fieldOptions": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { "calcs": [ "lastNotNull" ], - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "#EAB839", - "value": 30 - }, - { - "color": "semi-dark-green", - "value": 33 - } - ] - }, - "unit": "dB" - }, - "overrides": [], + "fields": "", "values": false }, - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto" + "text": {}, + "textMode": "auto" }, - "pluginVersion": "6.7.2", + "pluginVersion": "8.0.3", "targets": [ { - "expr": "min(connectbox_downstream_rxmer_db{instance=\"$host:$port\"})", + "exemplar": true, + "expr": "min(connectbox_uptime_seconds{instance=~\"$instance\"})", + "instant": true, "interval": "", - "legendFormat": "", + "intervalFactor": 2, + "legendFormat": "{{source}}", "refId": "A" } ], "timeFrom": null, "timeShift": null, - "title": "Minimum Downstream RxMER", + "title": "Uptime", "type": "stat" }, { "cacheTimeout": null, "datasource": "${DS_PROMETHEUS}", + "fieldConfig": { + "defaults": { + "mappings": [ + { + "$$hashKey": "object:4595", + "id": 0, + "op": "=", + "text": "N/A", + "type": 1, + "value": "null" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "semi-dark-green", + "value": null + }, + { + "color": "#EAB839", + "value": 10 + }, + { + "color": "red", + "value": 20 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, "gridPos": { "h": 4, "w": 4, "x": 12, - "y": 0 + "y": 1 }, "id": 53, "links": [], "options": { "colorMode": "value", - "fieldOptions": { + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { "calcs": [ "lastNotNull" ], - "defaults": { - "mappings": [ + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.0.3", + "targets": [ + { + "exemplar": true, + "expr": "sum(increase(connectbox_upstream_timeouts_total{instance=~\"$instance\"}[60m]))", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Upstream Timeouts in Last Hour", + "type": "stat" + }, + { + "datasource": "${DS_PROMETHEUS}", + "description": "Assuming 256QAM modulation, [30dB is the minimum, 33dB or higher is recommended](https://pickmymodem.com/signal-levels-docsis-3-03-1-cable-modem/).", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "$$hashKey": "object:4595", - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "color": "red", + "value": null + }, + { + "color": "#EAB839", + "value": 30 + }, + { + "color": "semi-dark-green", + "value": 33 } - ], - "nullValueMode": "connected", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "semi-dark-green", - "value": null - }, - { - "color": "#EAB839", - "value": 10 - }, - { - "color": "red", - "value": 20 - } - ] - }, - "unit": "none" + ] }, - "overrides": [], - "values": false + "unit": "dB" }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 16, + "y": 1 + }, + "id": 51, + "options": { + "colorMode": "value", "graphMode": "area", "justifyMode": "auto", - "orientation": "horizontal" + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" }, - "pluginVersion": "6.7.2", + "pluginVersion": "8.0.3", "targets": [ { - "expr": "sum(increase(connectbox_upstream_timeouts_total{instance=\"$host:$port\"}[60m]))", + "expr": "min(connectbox_downstream_rxmer_db{instance=~\"$instance\"})", "interval": "", "legendFormat": "", "refId": "A" @@ -381,76 +443,83 @@ ], "timeFrom": null, "timeShift": null, - "title": "Upstream Timeouts in Last Hour", + "title": "Minimum Downstream RxMER", "type": "stat" }, { "cacheTimeout": null, "datasource": "${DS_PROMETHEUS}", + "fieldConfig": { + "defaults": { + "mappings": [ + { + "$$hashKey": "object:1441", + "id": 0, + "op": "=", + "text": "N/A", + "type": 1, + "value": "null" + } + ], + "max": 60, + "min": 10, + "noValue": "No Info", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + }, + { + "color": "semi-dark-green", + "value": 20 + }, + { + "color": "#EAB839", + "value": 35 + }, + { + "color": "#E24D42", + "value": 50 + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, "gridPos": { "h": 4, "w": 4, - "x": 16, - "y": 0 + "x": 20, + "y": 1 }, "id": 34, + "interval": null, "links": [], + "maxDataPoints": null, "options": { - "fieldOptions": { + "orientation": "horizontal", + "reduceOptions": { "calcs": [ "last" ], - "defaults": { - "mappings": [ - { - "$$hashKey": "object:1441", - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "max": 60, - "min": 10, - "nullValueMode": "connected", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - }, - { - "color": "semi-dark-green", - "value": 20 - }, - { - "color": "#EAB839", - "value": 35 - }, - { - "color": "#E24D42", - "value": 50 - } - ] - }, - "unit": "celsius" - }, - "overrides": [], + "fields": "", "values": false }, - "orientation": "horizontal", "showThresholdLabels": true, - "showThresholdMarkers": true + "showThresholdMarkers": true, + "text": {} }, - "pluginVersion": "6.7.2", + "pluginVersion": "8.0.3", "targets": [ { - "expr": "connectbox_tuner_temperature_celsius{instance=\"$host:$port\"}", + "exemplar": true, + "expr": "max by(instance) (connectbox_tuner_temperature_celsius{instance=~\"$instance\"})", "interval": "", "intervalFactor": 2, - "legendFormat": "", + "legendFormat": "{{ source }}", "refId": "A" } ], @@ -460,521 +529,369 @@ "type": "gauge" }, { + "cacheTimeout": null, "datasource": "${DS_PROMETHEUS}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, "gridPos": { - "h": 4, + "h": 3, "w": 4, - "x": 20, - "y": 0 + "x": 0, + "y": 5 }, - "id": 4, + "id": 19, + "interval": null, + "links": [], + "maxDataPoints": 100, "options": { - "colorMode": "value", - "fieldOptions": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [], + "fields": "", "values": false }, - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto" + "text": {}, + "textMode": "name" }, - "pluginVersion": "6.7.2", + "pluginVersion": "8.0.3", "targets": [ { - "expr": "count(connectbox_ethernet_client_speed_mbit{instance=\"$host:$port\"})", - "instant": false, + "exemplar": true, + "expr": "connectbox_device_info{instance=~\"$instance\"}", + "instant": true, "interval": "", - "legendFormat": "LAN", + "legendFormat": "{{ cable_modem_status }}", "refId": "A" - }, - { - "expr": "count(connectbox_wifi_client_speed_mbit{instance=\"$host:$port\"})", - "instant": false, - "interval": "", - "legendFormat": "Wi-Fi", - "refId": "B" } ], "timeFrom": null, "timeShift": null, - "title": "Connected Clients", + "title": "Cable Modem", "type": "stat" }, { - "collapsed": true, + "cacheTimeout": null, "datasource": "${DS_PROMETHEUS}", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 4 - }, - "id": 24, - "panels": [ - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_PROMETHEUS}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 5 - }, - "id": 19, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:250", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:251", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "pluginVersion": "6.7.2", - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ + "mappings": [ { - "from": "null", - "text": "N/A", - "to": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] }, - "tableColumn": "", - "targets": [ - { - "expr": "connectbox_device_info{instance=\"$host:$port\"}", - "instant": true, - "interval": "", - "legendFormat": "{{ cable_modem_status }}", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Cable Modem", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "$$hashKey": "object:253", - "op": "=", - "text": "N/A", - "value": "null" - } + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 4, + "y": 5 + }, + "id": 21, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" ], - "valueName": "name" + "fields": "", + "values": false }, + "text": {}, + "textMode": "name" + }, + "pluginVersion": "8.0.3", + "targets": [ { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_PROMETHEUS}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 5 + "expr": "connectbox_device_info{instance=~\"$instance\"}", + "instant": true, + "interval": "", + "legendFormat": "{{ docsis_mode }}", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Connection Standard", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "${DS_PROMETHEUS}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - "id": 20, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:250", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:251", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "pluginVersion": "6.7.2", - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ + "decimals": 2, + "mappings": [ { - "from": "null", - "text": "N/A", - "to": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] }, - "tableColumn": "", - "targets": [ - { - "expr": "connectbox_device_info{instance=\"$host:$port\"}", - "instant": true, - "interval": "", - "legendFormat": "{{ operator_id }}", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "ISP", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "$$hashKey": "object:253", - "op": "=", - "text": "N/A", - "value": "null" - } + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 8, + "y": 5 + }, + "id": 25, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" ], - "valueName": "name" + "fields": "", + "values": false }, + "text": {}, + "textMode": "name" + }, + "pluginVersion": "8.0.3", + "targets": [ { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_PROMETHEUS}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 8, - "y": 5 + "expr": "connectbox_device_info{instance=~\"$instance\"}", + "instant": true, + "interval": "", + "legendFormat": "{{ hardware_version }}", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Hardware Version", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "${DS_PROMETHEUS}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - "id": 21, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:250", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:251", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "pluginVersion": "6.7.2", - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ + "mappings": [ { - "from": "null", - "text": "N/A", - "to": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] }, - "tableColumn": "", - "targets": [ - { - "expr": "connectbox_device_info{instance=\"$host:$port\"}", - "instant": true, - "interval": "", - "legendFormat": "{{ docsis_mode }}", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Connection Standard", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "$$hashKey": "object:253", - "op": "=", - "text": "N/A", - "value": "null" - } + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 12, + "y": 5 + }, + "id": 22, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" ], - "valueName": "name" + "fields": "", + "values": false }, + "text": {}, + "textMode": "name" + }, + "pluginVersion": "8.0.3", + "targets": [ { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_PROMETHEUS}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 8, - "x": 12, - "y": 5 - }, - "id": 22, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:250", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:251", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "pluginVersion": "6.7.2", - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "connectbox_device_info{instance=\"$host:$port\"}", - "instant": true, - "interval": "", - "legendFormat": "{{ firmware_version }}", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Firmware", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "$$hashKey": "object:253", - "op": "=", - "text": "N/A", - "value": "null" - } + "exemplar": true, + "expr": "connectbox_device_info{instance=~\"$instance\"}", + "instant": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{ firmware_version }}", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Firmware", + "type": "stat" + }, + { + "datasource": "${DS_PROMETHEUS}", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 20, + "y": 5 + }, + "id": 4, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" ], - "valueName": "name" + "fields": "", + "values": false }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.0.3", + "targets": [ { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_PROMETHEUS}", - "decimals": 2, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 20, - "y": 5 - }, - "id": 25, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:250", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:251", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "pluginVersion": "6.7.2", - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "connectbox_device_info{instance=\"$host:$port\"}", - "instant": true, - "interval": "", - "legendFormat": "{{ hardware_version }}", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Hardware Version", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "$$hashKey": "object:253", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "name" + "expr": "count(connectbox_ethernet_client_speed_mbit{instance=~\"$instance\"})", + "instant": false, + "interval": "", + "legendFormat": "LAN", + "refId": "A" + }, + { + "expr": "count(connectbox_wifi_client_speed_mbit{instance=~\"$instance\"})", + "instant": false, + "interval": "", + "legendFormat": "Wi-Fi", + "refId": "B" } ], - "title": "Assorted Facts", - "type": "row" + "timeFrom": null, + "timeShift": null, + "title": "Connected Clients", + "type": "stat" }, { "collapsed": false, @@ -983,7 +900,7 @@ "h": 1, "w": 24, "x": 0, - "y": 5 + "y": 16 }, "id": 6, "panels": [], @@ -991,483 +908,444 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "${DS_PROMETHEUS}", - "decimals": 1, "description": "Receive modulation error ratio (RxMER). [The higher the MER, the cleaner the received signal.](https://www.intraway.com/blog/monitoring-DOCSIS-3.1)", - "fill": 0, - "fillGradient": 0, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "dB" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 24, "x": 0, - "y": 6 + "y": 17 }, - "hiddenSeries": false, "id": 13, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sort": null, - "sortDesc": null, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.0.3", "targets": [ { - "expr": "avg_over_time(connectbox_downstream_rxmer_db{instance=\"$host:$port\"}[5m])", + "exemplar": true, + "expr": "avg by(instance,channel_id) (connectbox_downstream_rxmer_db{instance=~\"$instance\"})", "interval": "", "intervalFactor": 2, "legendFormat": "Ch. {{ channel_id }}", "refId": "A" } ], - "thresholds": [], "timeFrom": null, - "timeRegions": [], "timeShift": null, "title": "Downstream RxMER", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1577", - "decimals": null, - "format": "dB", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:1578", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "${DS_PROMETHEUS}", "description": "Based on data from the past 5 minutes, what percentage of codewords was successfully corrected per second?", - "fill": 0, - "fillGradient": 0, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 5, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 0, - "y": 13 + "y": 24 }, - "hiddenSeries": false, "id": 11, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": null, - "sortDesc": null, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "legend": { + "calcs": [ + "mean", + "max" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.0.3", + "repeat": null, "targets": [ { - "expr": "rate(connectbox_downstream_codewords_corrected_total{instance=\"$host:$port\"}[5m]) / (rate(connectbox_downstream_codewords_unerrored_total{instance=\"$host:$port\"}[5m]) + rate(connectbox_downstream_codewords_corrected_total{instance=\"$host:$port\"}[5m]) + rate(connectbox_downstream_codewords_uncorrectable_total{instance=\"$host:$port\"}[5m]))", + "exemplar": true, + "expr": "sum by(channel_id, instance) (rate(connectbox_downstream_codewords_corrected_total{instance=~\"$instance\"}[5m])) / (sum by(channel_id, instance) (rate(connectbox_downstream_codewords_unerrored_total{instance=~\"$instance\"}[5m])) + sum by(channel_id, instance) (rate(connectbox_downstream_codewords_corrected_total{instance=~\"$instance\"}[5m])) + sum by(channel_id, instance) (rate(connectbox_downstream_codewords_uncorrectable_total{instance=~\"$instance\"}[5m])))", "interval": "", "intervalFactor": 2, "legendFormat": "Ch. {{ channel_id }}", "refId": "A" } ], - "thresholds": [], "timeFrom": null, - "timeRegions": [], "timeShift": null, "title": "Corrected Codewords per Second", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1019", - "decimals": null, - "format": "percentunit", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:1020", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "${DS_PROMETHEUS}", "description": "Based on data from the past 5 minutes, what percentage of codewords could not be corrected per second?", - "fill": 0, - "fillGradient": 0, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 12, - "y": 13 + "y": 24 }, - "hiddenSeries": false, "id": 30, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": null, - "sortDesc": null, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "legend": { + "calcs": [ + "mean", + "max" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.0.3", "targets": [ { - "expr": "rate(connectbox_downstream_codewords_uncorrectable_total{instance=\"$host:$port\"}[5m]) / (rate(connectbox_downstream_codewords_unerrored_total{instance=\"$host:$port\"}[5m]) + rate(connectbox_downstream_codewords_corrected_total{instance=\"$host:$port\"}[5m]) + rate(connectbox_downstream_codewords_uncorrectable_total{instance=\"$host:$port\"}[5m]))", + "exemplar": true, + "expr": "sum by(channel_id, instance) (rate(connectbox_downstream_codewords_uncorrectable_total{instance=~\"$instance\"}[5m])) / (sum by(channel_id, instance) (rate(connectbox_downstream_codewords_unerrored_total{instance=~\"$instance\"}[5m])) + sum by(channel_id, instance) (rate(connectbox_downstream_codewords_corrected_total{instance=~\"$instance\"}[5m])) + sum by(channel_id, instance) (rate(connectbox_downstream_codewords_uncorrectable_total{instance=~\"$instance\"}[5m])))", "interval": "", "intervalFactor": 2, "legendFormat": "Ch. {{ channel_id }}", "refId": "A" } ], - "thresholds": [], "timeFrom": null, - "timeRegions": [], "timeShift": null, "title": "Uncorrectable Codewords per Second", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1019", - "decimals": null, - "format": "percentunit", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:1020", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fill": 0, - "fillGradient": 0, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "hertz" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 0, - "y": 20 + "y": 31 }, - "hiddenSeries": false, "id": 40, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.0.3", "targets": [ { - "expr": "connectbox_downstream_frequency_hz{instance=\"$host:$port\"}", + "exemplar": true, + "expr": "max by(channel_id, instance) (connectbox_downstream_frequency_hz{instance=~\"$instance\"})", "interval": "", "legendFormat": "Ch. {{ channel_id}}", "refId": "A" } ], - "thresholds": [], "timeFrom": null, - "timeRegions": [], "timeShift": null, "title": "Downstream Channel Frequency", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1972", - "format": "hertz", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:1973", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fill": 0, - "fillGradient": 0, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "dBmV", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "dBmV" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 12, - "y": 20 + "y": 31 }, - "hiddenSeries": false, "id": 8, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.0.3", "targets": [ { - "expr": "avg_over_time(connectbox_downstream_power_level_dbmv{instance=\"$host:$port\"}[5m])", + "exemplar": true, + "expr": "avg by(instance,channel_id) (connectbox_downstream_power_level_dbmv{instance=~\"$instance\"})", "interval": "", "intervalFactor": 2, "legendFormat": "Ch. {{ channel_id }}", "refId": "A" } ], - "thresholds": [], "timeFrom": null, - "timeRegions": [], "timeShift": null, "title": "Downstream Channel Power Level", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:748", - "format": "short", - "label": "dBmV", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:749", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { "collapsed": false, @@ -1476,7 +1354,7 @@ "h": 1, "w": 24, "x": 0, - "y": 27 + "y": 38 }, "id": 15, "panels": [], @@ -1484,284 +1362,270 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fill": 1, - "fillGradient": 0, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "Timeouts", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 6, "w": 24, "x": 0, - "y": 28 + "y": 39 }, - "hiddenSeries": false, "id": 43, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "legend": { + "calcs": [ + "mean", + "max" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.0.3", "targets": [ { - "expr": "sum(increase(connectbox_upstream_timeouts_total{instance=\"$host:$port\"}[15m])) by (timeout_type)", + "exemplar": true, + "expr": "sum(increase(connectbox_upstream_timeouts_total{instance=~\"$instance\"}[15m])) by (timeout_type)", "interval": "", "legendFormat": "{{ timeout_type }} timeout", "refId": "A" } ], - "thresholds": [], "timeFrom": null, - "timeRegions": [], "timeShift": null, "title": "Number of Timeouts per 15min", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:2288", - "decimals": 0, - "format": "short", - "label": "Timeouts", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:2289", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fill": 0, - "fillGradient": 0, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "hertz" + }, + "overrides": [] + }, "gridPos": { "h": 5, "w": 12, "x": 0, - "y": 34 + "y": 45 }, - "hiddenSeries": false, "id": 41, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "connectbox_upstream_frequency_hz{instance=\"$host:$port\"}", - "interval": "", - "legendFormat": "Ch. {{ channel_id}}", - "refId": "A" + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Upstream Channel Frequency", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1972", - "format": "hertz", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, + "pluginVersion": "8.0.3", + "targets": [ { - "$$hashKey": "object:1973", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "exemplar": true, + "expr": "max by(channel_id, instance) (connectbox_upstream_frequency_hz{instance=~\"$instance\"})", + "interval": "", + "legendFormat": "Ch. {{ channel_id}}", + "refId": "A" } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "timeFrom": null, + "timeShift": null, + "title": "Upstream Channel Frequency", + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "${DS_PROMETHEUS}", - "decimals": 1, - "fill": 0, - "fillGradient": 0, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "dBmV", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "dBmV" + }, + "overrides": [] + }, "gridPos": { "h": 5, "w": 12, "x": 12, - "y": 34 + "y": 45 }, - "hiddenSeries": false, "id": 17, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.0.3", "targets": [ { - "expr": "avg_over_time(connectbox_upstream_power_level_dbmv{instance=\"$host:$port\"}[5m])", + "exemplar": true, + "expr": "avg by(instance,channel_id) (connectbox_upstream_power_level_dbmv{instance=~\"$instance\"})", "interval": "", "intervalFactor": 2, "legendFormat": "Ch. {{ channel_id }}", "refId": "A" } ], - "thresholds": [], "timeFrom": null, - "timeRegions": [], "timeShift": null, "title": "Upstream Channel Power Level", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1756", - "decimals": null, - "format": "dB", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:1757", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { "collapsed": true, @@ -1770,310 +1634,111 @@ "h": 1, "w": 24, "x": 0, - "y": 39 + "y": 50 }, "id": 27, "panels": [ { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fill": 1, - "fillGradient": 0, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, "gridPos": { "h": 5, "w": 24, "x": 0, - "y": 40 + "y": 43 }, - "hiddenSeries": false, "id": 29, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", "options": { - "dataLinks": [] + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" + } }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "8.0.3", "targets": [ { - "expr": "connectbox_tuner_temperature_celsius{instance=\"$host:$port\"}", + "exemplar": true, + "expr": "max by(instance) (connectbox_tuner_temperature_celsius{instance=~\"$instance\"})", "interval": "", "legendFormat": "Tuner", "refId": "A" }, { - "expr": "connectbox_temperature_celsius{instance=\"$host:$port\"}", + "exemplar": true, + "expr": "max by(instance) (connectbox_temperature_celsius{instance=~\"$instance\"})", "interval": "", "legendFormat": "Device", "refId": "B" } ], - "thresholds": [], "timeFrom": null, - "timeRegions": [], "timeShift": null, "title": "Device Temperature", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1166", - "format": "celsius", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:1167", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" } ], "title": "Temperature", "type": "row" }, - { - "collapsed": false, - "datasource": "${DS_PROMETHEUS}", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 40 - }, - "id": 38, - "panels": [], - "title": "LAN Clients", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS}", - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 41 - }, - "hiddenSeries": false, - "id": 36, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "connectbox_ethernet_client_speed_mbit{instance=\"$host:$port\"}", - "interval": "", - "legendFormat": "{{ hostname }} ({{ ipv4_address }})", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Ethernet Client Connection Speed", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1777", - "format": "Mbits", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:1778", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS}", - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 41 - }, - "hiddenSeries": false, - "id": 54, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "connectbox_wifi_client_speed_mbit{instance=\"$host:$port\"}", - "interval": "", - "legendFormat": "{{ hostname }} ({{ ipv4_address }})", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Wi-Fi Client Connection Speed", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:1777", - "format": "Mbits", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:1778", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, { "collapsed": true, "datasource": "${DS_PROMETHEUS}", @@ -2081,260 +1746,445 @@ "h": 1, "w": 24, "x": 0, - "y": 49 + "y": 51 }, - "id": 47, + "id": 38, "panels": [ { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fill": 1, - "fillGradient": 0, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "Mbits" + }, + "overrides": [] + }, "gridPos": { - "h": 7, + "h": 8, "w": 12, "x": 0, - "y": 42 + "y": 44 }, - "hiddenSeries": false, - "id": 45, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", + "id": 36, "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:2422", - "alias": "total", - "color": "rgb(255, 255, 255)", - "fill": 0, - "stack": false + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, + }, + "pluginVersion": "8.0.3", "targets": [ { - "expr": "connectbox_scrape_duration_seconds{instance=\"$host:$port\"}", + "exemplar": true, + "expr": "avg by (hostname, ipv4_address) (connectbox_ethernet_client_speed_mbit{instance=~\"$instance\"})", "interval": "", - "intervalFactor": 2, - "legendFormat": "{{ extractor }}", + "legendFormat": "{{ hostname }} ({{ ipv4_address }})", "refId": "A" - }, - { - "expr": "sum(connectbox_scrape_duration_seconds{instance=\"$host:$port\"})", - "interval": "", - "legendFormat": "total", - "refId": "B" } ], - "thresholds": [], "timeFrom": null, - "timeRegions": [], "timeShift": null, - "title": "Connectbox Exporter Scrape Duration", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:2690", - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:2691", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "title": "Ethernet Client Connection Speed", + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "${DS_PROMETHEUS}", - "fill": 1, - "fillGradient": 0, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Mbits" + }, + "overrides": [] + }, "gridPos": { - "h": 7, + "h": 8, "w": 12, "x": 12, - "y": 42 + "y": 44 }, - "hiddenSeries": false, - "id": 49, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", + "id": 54, "options": { - "dataLinks": [] + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" + } }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "8.0.3", "targets": [ { - "expr": "connectbox_up{instance=\"$host:$port\"}", + "exemplar": true, + "expr": "avg by(hostname, ipv4_address) (connectbox_wifi_client_speed_mbit{instance=~\"$instance\"})", "interval": "", - "legendFormat": "{{ extractor }}", + "legendFormat": "{{ hostname }} ({{ ipv4_address }})", "refId": "A" } ], - "thresholds": [], "timeFrom": null, - "timeRegions": [], "timeShift": null, - "title": "Connectbox Exporter Scrape Success", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" + "title": "Wi-Fi Client Connection Speed", + "type": "timeseries" + } + ], + "title": "LAN Clients", + "type": "row" + }, + { + "collapsed": true, + "datasource": "${DS_PROMETHEUS}", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 52 + }, + "id": 47, + "panels": [], + "title": "Connectbox Exporter", + "type": "row" + }, + { + "datasource": "${DS_PROMETHEUS}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } }, - "yaxes": [ - { - "$$hashKey": "object:3339", - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1", - "min": null, - "show": true + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "total" }, - { - "$$hashKey": "object:3340", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "rgb(255, 255, 255)", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.stacking", + "value": { + "group": false, + "mode": "none" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 53 + }, + "id": 45, + "interval": null, + "maxDataPoints": null, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.0.3", + "targets": [ + { + "exemplar": true, + "expr": "avg by(instance,extractor) (connectbox_scrape_duration_seconds{instance=~\"$instance\"})", + "hide": false, + "instant": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{ extractor }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum by(instance) (connectbox_scrape_duration_seconds{instance=~\"$instance\"})", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "total", + "refId": "B" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Connectbox Exporter Scrape Duration", + "type": "timeseries" + }, + { + "datasource": "${DS_PROMETHEUS}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } + }, + "links": [], + "mappings": [], + "max": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 53 + }, + "id": 49, + "options": { + "legend": { + "calcs": [ + "mean" ], - "yaxis": { - "align": false, - "alignLevel": null - } + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.0.3", + "targets": [ + { + "exemplar": true, + "expr": "max by(instance, extractor) (connectbox_up{instance=~\"$instance\"})", + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{ extractor }}", + "refId": "A" } ], - "title": "Connectbox Exporter", - "type": "row" + "timeFrom": null, + "timeShift": null, + "title": "Connectbox Exporter Scrape Success", + "type": "timeseries" } ], "refresh": "1m", - "schemaVersion": 22, + "schemaVersion": 30, "style": "dark", "tags": [], "templating": { "list": [ { - "allValue": null, - "current": { - "selected": false, - "text": "localhost", - "value": "localhost" - }, - "hide": 2, - "includeAll": false, - "label": null, + "allValue": "", + "current": {}, + "datasource": "${DS_PROMETHEUS}", + "definition": "label_values(connectbox_device_info, instance)", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Instance", "multi": false, - "name": "host", - "options": [ - { - "selected": true, - "text": "localhost", - "value": "localhost" - } - ], - "query": "localhost", - "skipUrlSync": false, - "type": "custom" - }, - { - "current": { - "value": "${VAR_PORT}", - "text": "${VAR_PORT}" + "name": "instance", + "options": [], + "query": { + "query": "label_values(connectbox_device_info, instance)", + "refId": "StandardVariableQuery" }, - "hide": 2, - "label": null, - "name": "port", - "options": [ - { - "value": "${VAR_PORT}", - "text": "${VAR_PORT}" - } - ], - "query": "${VAR_PORT}", + "refresh": 1, + "regex": "", "skipUrlSync": false, - "type": "constant" + "sort": 0, + "type": "query" } ] }, @@ -2357,8 +2207,5 @@ "timezone": "", "title": "Connect Box", "uid": "Uph-DFzRk", - "variables": { - "list": [] - }, - "version": 25 + "version": 26 } \ No newline at end of file