From 66cffcafccb5d1c3dd95178242ae7a6b87463579 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 12 Jun 2024 21:40:21 +0200 Subject: grafana/openwrt-dashboard: remove graphs for removed nat_traffic metrics --- .../grafana/files/dashboard-openwrt.json | 226 +-------------------- 1 file changed, 1 insertion(+), 225 deletions(-) (limited to 'roles') diff --git a/roles/monitoring/grafana/files/dashboard-openwrt.json b/roles/monitoring/grafana/files/dashboard-openwrt.json index 93104f79..b3bf4cea 100644 --- a/roles/monitoring/grafana/files/dashboard-openwrt.json +++ b/roles/monitoring/grafana/files/dashboard-openwrt.json @@ -1024,86 +1024,6 @@ "title": "Total Network Traffic", "type": "stat" }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "description": "Total NAT traffic (WAN)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bits" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 15, - "y": 7 - }, - "id": 311, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "10.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "expr": "sum(node_nat_traffic{instance=~\"$instance\",job=~\"$job\"})", - "intervalFactor": 1, - "refId": "A", - "step": 900 - } - ], - "title": "Total NAT Traffic", - "type": "stat" - }, { "collapsed": false, "datasource": { @@ -9496,150 +9416,6 @@ "title": "Network Traffic by Packets", "type": "timeseries" }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "decmbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byValue", - "options": { - "op": "gte", - "reducer": "allIsZero", - "value": 0 - } - }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": true, - "tooltip": true, - "viz": false - } - } - ] - }, - { - "matcher": { - "id": "byValue", - "options": { - "op": "gte", - "reducer": "allIsNull", - "value": 0 - } - }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": true, - "tooltip": true, - "viz": false - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 136 - }, - "id": 281, - "interval": "1m", - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "10.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "expr": "topk(15, node_nat_traffic{instance=~\"$instance\",job=~\"$job\"}/1024/1024)", - "hide": false, - "instant": false, - "intervalFactor": 4, - "legendFormat": "Dest= {{dest}} # Source= {{src}}", - "refId": "A" - } - ], - "title": "Top NAT Traffic", - "type": "timeseries" - }, { "collapsed": false, "datasource": { @@ -11864,4 +11640,4 @@ "uid": "fLi0yXAWk", "version": 3, "weekStart": "" -} \ No newline at end of file +} -- cgit v1.2.3