{ "__inputs": [ { "name": "DS_PROMETHEUS", "label": "Prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__requires": [ { "type": "panel", "id": "gauge", "name": "Gauge", "version": "" }, { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "6.7.4" }, { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "singlestat", "name": "Singlestat", "version": "" }, { "type": "panel", "id": "table", "name": "Table", "version": "" } ], "annotations": { "list": [ { "$$hashKey": "object:41", "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "Monitor FRITZ!Box routers.", "editable": true, "gnetId": 713, "graphTooltip": 2, "id": null, "links": [], "panels": [ { "cacheTimeout": null, "colorBackground": true, "colorValue": false, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "#1f78c1" ], "datasource": "${DS_PROMETHEUS}", "format": "none", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "id": 10, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "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 }, "tableColumn": "", "targets": [ { "dsType": "prometheus", "expr": "gateway_wan_connection_status", "groupBy": [ { "params": [ "$__interval" ], "type": "time" } ], "interval": "", "legendFormat": "", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "last" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "constatus" } ], "target": "" } ], "thresholds": "1,1", "title": "WAN Connection Status", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" }, { "op": "=", "text": "Disconnected", "value": "0" }, { "op": "=", "text": "Connected", "value": "1" } ], "valueName": "current" }, { "cacheTimeout": null, "colorBackground": true, "colorValue": false, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "#1f78c1" ], "datasource": "${DS_PROMETHEUS}", "format": "none", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 3, "w": 6, "x": 6, "y": 0 }, "id": 9, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "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 }, "tableColumn": "", "targets": [ { "dsType": "prometheus", "expr": "gateway_wan_layer1_link_status", "groupBy": [ { "params": [ "$__interval" ], "type": "time" } ], "interval": "", "legendFormat": "", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "last" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "dslstatus" } ], "target": "" } ], "thresholds": "1,1", "title": "DSL Link Status", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" }, { "op": "=", "text": "Disconnected", "value": "0" }, { "op": "=", "text": "Connected", "value": "1" } ], "valueName": "current" }, { "cacheTimeout": null, "datasource": "${DS_PROMETHEUS}", "gridPos": { "h": 6, "w": 6, "x": 12, "y": 0 }, "id": 11, "links": [], "options": { "fieldOptions": { "calcs": [ "lastNotNull" ], "defaults": { "color": { "mode": "thresholds" }, "decimals": 1, "mappings": [ { "id": 0, "op": "=", "text": "N/A", "type": 1, "value": "null" } ], "max": 116000000, "min": 0, "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", "value": 50000000 }, { "color": "red", "value": 100000000 } ] }, "unit": "bps" }, "overrides": [], "values": false }, "orientation": "horizontal", "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "6.7.4", "targets": [ { "dsType": "prometheus", "expr": "gateway_wan_bytes_receive_rate", "groupBy": [ { "params": [ "$__interval" ], "type": "time" } ], "interval": "", "legendFormat": "", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "last" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "receiverate" } ], "target": "" } ], "title": "Current Download", "type": "gauge" }, { "cacheTimeout": null, "datasource": "${DS_PROMETHEUS}", "gridPos": { "h": 6, "w": 6, "x": 18, "y": 0 }, "id": 12, "links": [], "options": { "fieldOptions": { "calcs": [ "lastNotNull" ], "defaults": { "color": { "mode": "thresholds" }, "decimals": 1, "mappings": [ { "id": 0, "op": "=", "text": "N/A", "type": 1, "value": "null" } ], "max": 40000000, "min": 0, "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": null }, { "color": "green", "value": 5000000 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 10000000 }, { "color": "#e24d42", "value": 30000000 } ] }, "unit": "bps" }, "overrides": [], "values": false }, "orientation": "horizontal", "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "6.7.4", "targets": [ { "dsType": "prometheus", "expr": "gateway_wan_bytes_send_rate", "groupBy": [ { "params": [ "$__interval" ], "type": "time" } ], "interval": "", "legendFormat": "", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "last" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "sendrate" } ], "target": "" } ], "title": "Current Upload", "type": "gauge" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": false, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "datasource": "${DS_PROMETHEUS}", "decimals": 1, "format": "dtdurations", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 3, "w": 6, "x": 0, "y": 3 }, "id": 21, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "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 }, "tableColumn": "", "targets": [ { "dsType": "prometheus", "expr": "gateway_uptime_seconds", "groupBy": [ { "params": [ "$__interval" ], "type": "time" } ], "interval": "", "legendFormat": "", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "last" } ] ], "tags": [ { "key": "type", "operator": "=", "value": "uptime" } ], "target": "" } ], "thresholds": "1,1", "title": "Fritzbox Uptime", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" }, { "op": "=", "text": "Disconnected", "value": "0" }, { "op": "=", "text": "Connected", "value": "1" } ], "valueName": "current" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": false, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "datasource": "${DS_PROMETHEUS}", "decimals": 1, "format": "dtdurations", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 3, "w": 6, "x": 6, "y": 3 }, "id": 13, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "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 }, "tableColumn": "", "targets": [ { "dsType": "prometheus", "expr": "gateway_wan_connection_uptime_seconds", "groupBy": [ { "params": [ "$__interval" ], "type": "time" } ], "interval": "", "legendFormat": "", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "last" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "uptime" } ], "target": "" } ], "thresholds": "1,1", "title": "Connection Uptime", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "current" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": false, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "datasource": "${DS_PROMETHEUS}", "decimals": 1, "format": "decbytes", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 4, "w": 6, "x": 0, "y": 6 }, "id": 3, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "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": true }, "tableColumn": "", "targets": [ { "dsType": "prometheus", "expr": "gateway_wan_bytes_received", "groupBy": [], "interval": "", "legendFormat": "", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT cumulative_sum(non_negative_difference(last(\"value\"))) FROM \"fritzbox_value\" WHERE (\"type_instance\" = 'totalbytesreceived') AND $timeFilter GROUP BY time($__interval)", "rawQuery": false, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [ "10s" ], "type": "non_negative_derivative" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "totalbytesreceived" } ], "target": "" } ], "thresholds": "", "title": "Total Download", "type": "singlestat", "valueFontSize": "100%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "total" }, { "cacheTimeout": null, "colorBackground": false, "colorPrefix": true, "colorValue": false, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "datasource": "${DS_PROMETHEUS}", "decimals": 1, "format": "decbytes", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 4, "w": 6, "x": 6, "y": 6 }, "id": 8, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "postfix": "", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "rgba(137, 15, 2, 0.18)", "full": false, "lineColor": "#e24d42", "show": true }, "tableColumn": "", "targets": [ { "dsType": "prometheus", "expr": "gateway_wan_bytes_sent", "groupBy": [], "interval": "", "legendFormat": "", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT cumulative_sum(non_negative_difference(last(\"value\"))) FROM \"fritzbox_value\" WHERE (\"type_instance\" = 'totalbytessent') AND $timeFilter GROUP BY time($__interval)", "rawQuery": false, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "non_negative_difference" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "totalbytessent" } ], "target": "" } ], "thresholds": "", "title": "Total Upload", "type": "singlestat", "valueFontSize": "100%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "total" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": false, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "datasource": "${DS_PROMETHEUS}", "decimals": 1, "format": "decbytes", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 4, "w": 6, "x": 12, "y": 6 }, "hideTimeOverride": false, "id": 22, "interval": "", "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "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": true }, "tableColumn": "", "targets": [ { "dsType": "prometheus", "expr": "gateway_wan_bytes_received", "groupBy": [], "interval": "", "legendFormat": "", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT cumulative_sum(max(\"value\")) FROM \"fritzbox_value\" WHERE (\"type_instance\" = 'totalbytesreceived') AND $timeFilter GROUP BY time($__interval) tz('Europe/Berlin')", "rawQuery": false, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "non_negative_difference" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "totalbytesreceived" } ], "target": "" } ], "thresholds": "", "timeFrom": "1d", "timeShift": null, "title": "Last 24h Download", "type": "singlestat", "valueFontSize": "100%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "range" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": false, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "datasource": "${DS_PROMETHEUS}", "decimals": 1, "format": "decbytes", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 4, "w": 6, "x": 18, "y": 6 }, "id": 16, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "postfix": "", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "rgba(137, 15, 2, 0.18)", "full": false, "lineColor": "#e24d42", "show": true }, "tableColumn": "", "targets": [ { "dsType": "prometheus", "expr": "gateway_wan_bytes_sent", "groupBy": [], "interval": "", "legendFormat": "", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT cumulative_sum(non_negative_difference(last(\"value\"))) FROM \"fritzbox_value\" WHERE (\"type_instance\" = 'totalbytessent') AND $timeFilter GROUP BY time($__interval) tz('Europe/Berlin')", "rawQuery": false, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "non_negative_difference" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "totalbytessent" } ], "target": "" } ], "thresholds": "", "timeFrom": "1d", "title": "Last 24h Upload", "type": "singlestat", "valueFontSize": "100%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "range" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 10 }, "hiddenSeries": false, "id": 24, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "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": "gateway_wlan_current_connections", "interval": "", "legendFormat": "2.4 GHz", "refId": "A" }, { "expr": "gateway_wlan2_current_connections", "interval": "", "legendFormat": "5 GHz", "refId": "B" }, { "expr": "gateway_wlan_current_connections+gateway_wlan2_current_connections", "interval": "", "legendFormat": "Total", "refId": "C" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "WLAN Connections", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": { "downstream": "#1F78C1", "downstream max": "#0A437C", "upstream": "#EA6460", "upstream max": "#890F02" }, "annotate": { "enable": false }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", "editable": true, "fill": 1, "fillGradient": 0, "grid": {}, "gridPos": { "h": 7, "w": 6, "x": 12, "y": 10 }, "hiddenSeries": false, "id": 18, "legend": { "alignAsTable": false, "avg": false, "current": true, "max": false, "min": false, "rightSide": false, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "connected", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "resolution": 100, "scale": 1, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "alias": "downstream", "dsType": "prometheus", "expr": "gateway_wan_layer1_downstream_max_bitrate", "fields": [ { "func": "mean", "name": "value" } ], "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "groupByTags": [], "interval": "", "legendFormat": "Downstream", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT mean(value) FROM \"fritzbox_value\" WHERE \"type_instance\" = 'receiverate' AND $timeFilter GROUP BY time($interval)", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "receiverate" } ], "target": "alias(collectd.squirrel.fritzbox.bitrate-receiverate,'downstream')" }, { "alias": "downstream max", "dsType": "prometheus", "expr": "gateway_wan_layer1_upstream_max_bitrate", "fields": [ { "func": "mean", "name": "value" } ], "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "groupByTags": [], "interval": "", "legendFormat": "Upstream", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT mean(value) FROM \"fritzbox_value\" WHERE \"type_instance\" = 'downstreammax' AND $timeFilter GROUP BY time($interval)", "refId": "B", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "downstreammax" } ], "target": "alias(collectd.squirrel.fritzbox.bitrate-downstreammax,'downstream max')" }, { "alias": "upstream", "dsType": "prometheus", "expr": "gateway_wan_bytes_receive_rate", "fields": [ { "func": "mean", "name": "value" } ], "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "groupByTags": [], "interval": "", "legendFormat": "Download", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT mean(value) FROM \"fritzbox_value\" WHERE \"type_instance\" = 'sendrate' AND $timeFilter GROUP BY time($interval)", "refId": "C", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "sendrate" } ], "target": "alias(collectd.squirrel.fritzbox.bitrate-sendrate,'upstream')" }, { "alias": "upstream max", "dsType": "prometheus", "expr": "gateway_wan_bytes_send_rate", "fields": [ { "func": "mean", "name": "value" } ], "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "groupByTags": [], "interval": "", "legendFormat": "Upload", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT mean(value) FROM \"fritzbox_value\" WHERE \"type_instance\" = 'upstreammax' AND $timeFilter GROUP BY time($interval)", "refId": "D", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "upstreammax" } ], "target": "alias(collectd.squirrel.fritzbox.bitrate-upstreammax,'upstream max')" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Bandwidth", "tooltip": { "msResolution": false, "query_as_alias": true, "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": null, "format": "bps", "label": "", "logBase": 1, "max": "116000000", "min": "0", "show": true }, { "format": "short", "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null }, "zerofill": true }, { "aliasColors": { "download": "#1F78C1", "upload": "#EA6460" }, "annotate": { "enable": false }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", "editable": true, "fill": 0, "fillGradient": 0, "grid": {}, "gridPos": { "h": 7, "w": 6, "x": 18, "y": 10 }, "hiddenSeries": false, "id": 17, "interval": "1h", "legend": { "avg": false, "current": true, "max": false, "min": false, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "connected", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "repeat": null, "resolution": 100, "scale": 1, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": true, "targets": [ { "alias": "download", "dsType": "prometheus", "expr": "delta(gateway_wan_bytes_received[1m])/60", "fields": [ { "func": "mean", "name": "value" } ], "groupBy": [ { "params": [ "$interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "groupByTags": [], "interval": "", "legendFormat": "Download", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT mean(\"value\") FROM \"fritzbox_value\" WHERE (\"type_instance\" = 'totalbytesreceived') AND $timeFilter GROUP BY time($interval) fill(null)", "rawQuery": true, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "totalbytesreceived" } ], "target": "alias(summarize(nonNegativeDerivative(collectd.squirrel.fritzbox.bytes-totalbytesreceived, 0), '1h', 'sum'), 'download')" }, { "alias": "upload", "dsType": "prometheus", "expr": "delta(gateway_wan_bytes_sent[1m])/60", "fields": [ { "func": "mean", "name": "value" } ], "fill": "null", "groupBy": [ { "params": [ "$interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "groupByTags": [], "hide": false, "interval": "", "legendFormat": "Upload", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT non_negative_difference(last(cumulative_sum)) FROM (\nSELECT cumulative_sum(non_negative_difference(last(\"value\"))) FROM \"fritzbox_value\" WHERE (\"type_instance\" = 'totalbytessent') AND $timeFilter GROUP BY time($__interval)\n) WHERE $timeFilter GROUP BY time($__interval) tz('Europe/Berlin')", "rawQuery": true, "refId": "B", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "totalbytessent" } ], "target": "alias(summarize(nonNegativeDerivative(collectd.squirrel.fritzbox.bytes-totalbytessent,0),'1h','sum'),'upload')" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Current Traffic", "tooltip": { "msResolution": false, "query_as_alias": true, "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "Bps", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "Bps", "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null }, "zerofill": true }, { "aliasColors": { "Download": "#1f78c1", "Upload": "#e24d42", "fritzbox_value.non_negative_derivative": "#ba43a9", "fritzbox_value.non_negative_difference": "#e24d42" }, "bars": true, "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", "fill": 1, "fillGradient": 0, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 18 }, "hiddenSeries": false, "id": 2, "interval": "10s", "legend": { "alignAsTable": false, "avg": false, "current": false, "hideEmpty": false, "hideZero": false, "max": false, "min": false, "rightSide": false, "show": true, "total": false, "values": false }, "lines": false, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "alias": "Download", "dsType": "prometheus", "expr": "gateway_wan_bytes_received", "format": "time_series", "groupBy": [ { "params": [ "24h" ], "type": "time" } ], "hide": false, "instant": false, "interval": "", "legendFormat": "Download", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT non_negative_difference(last(cumulative_sum)) FROM (\nSELECT cumulative_sum(non_negative_difference(\"value\")) FROM \"fritzbox_value\" WHERE (\"type_instance\" = 'totalbytesreceived') AND $timeFilter\n) WHERE $timeFilter GROUP BY time(1d) tz('Europe/Berlin')", "rawQuery": true, "refId": "F", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "max" }, { "params": [ "10s" ], "type": "non_negative_derivative" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "totalbytesreceived" } ], "target": "" }, { "alias": "Upload", "dsType": "prometheus", "expr": "gateway_wan_bytes_sent", "groupBy": [ { "params": [ "24h" ], "type": "time" } ], "hide": false, "interval": "", "legendFormat": "Upload", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT non_negative_difference(last(cumulative_sum)) FROM (\nSELECT cumulative_sum(non_negative_difference(\"value\")) FROM \"fritzbox_value\" WHERE (\"type_instance\" = 'totalbytessent') AND $timeFilter \n) WHERE $timeFilter GROUP BY time(1d) tz('Europe/Berlin')", "rawQuery": true, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "max" }, { "params": [ "10s" ], "type": "non_negative_derivative" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "totalbytesreceived" } ], "target": "" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Daily Traffic", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 0, "format": "decbytes", "label": "", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "decbytes", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "columns": [], "datasource": "${DS_PROMETHEUS}", "fontSize": "100%", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 25 }, "id": 14, "links": [], "pageSize": null, "scroll": true, "showHeader": true, "sort": { "col": 0, "desc": true }, "styles": [ { "alias": "Time", "align": "auto", "dateFormat": "MMMM D, YYYY LT", "pattern": "Time", "type": "date" }, { "alias": "", "align": "auto", "colorMode": null, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "decimals": 2, "pattern": "/.*/", "thresholds": [], "type": "number", "unit": "decbytes" } ], "targets": [ { "alias": "Download", "dsType": "prometheus", "expr": "gateway_wan_bytes_received", "groupBy": [ { "params": [ "1d" ], "type": "time" } ], "interval": "", "legendFormat": "Download", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT non_negative_difference(last(cumulative_sum)) FROM (\nSELECT cumulative_sum(non_negative_difference(\"value\")) FROM \"fritzbox_value\" WHERE (\"type_instance\" = 'totalbytesreceived') AND $timeFilter \n) WHERE $timeFilter GROUP BY time(1d) tz('Europe/Berlin')", "rawQuery": true, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "max" }, { "params": [ "10s" ], "type": "non_negative_derivative" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "totalbytesreceived" } ], "target": "" }, { "alias": "Upload", "dsType": "prometheus", "expr": "gateway_wan_bytes_sent", "groupBy": [ { "params": [ "1d" ], "type": "time" } ], "interval": "", "legendFormat": "Upload", "measurement": "fritzbox_value", "orderByTime": "ASC", "policy": "default", "query": "SELECT non_negative_difference(last(cumulative_sum)) FROM (\nSELECT cumulative_sum(non_negative_difference(\"value\")) FROM \"fritzbox_value\" WHERE (\"type_instance\" = 'totalbytessent') AND $timeFilter\n) WHERE $timeFilter GROUP BY time(1d) tz('Europe/Berlin')", "rawQuery": true, "refId": "B", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "max" }, { "params": [ "10s" ], "type": "non_negative_derivative" } ] ], "tags": [ { "key": "type_instance", "operator": "=", "value": "totalbytesreceived" } ], "target": "" } ], "title": "Daily Traffic", "transform": "timeseries_to_columns", "type": "table" } ], "refresh": false, "schemaVersion": 22, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { "from": "now-7d", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "", "title": "FRITZ!Box Status", "uid": "000000013", "variables": { "list": [] }, "version": 18 }