From 4b832342d96ecf7276399cc9c40fcaea4200d20a Mon Sep 17 00:00:00 2001 From: VictorRobellini <39597627+VictorRobellini@users.noreply.github.com> Date: Sat, 19 Jun 2021 11:56:42 -0400 Subject: [PATCH] Interface Widget I updated the threshold and value mapping to apply to only the status column --- pfSense-Grafana-Dashboard.json | 2199 +++++++++++++++++--------------- 1 file changed, 1136 insertions(+), 1063 deletions(-) diff --git a/pfSense-Grafana-Dashboard.json b/pfSense-Grafana-Dashboard.json index 9245970..6a416de 100644 --- a/pfSense-Grafana-Dashboard.json +++ b/pfSense-Grafana-Dashboard.json @@ -76,7 +76,7 @@ "gnetId": null, "graphTooltip": 0, "id": null, - "iteration": 1621452211476, + "iteration": 1623767773661, "links": [], "panels": [ { @@ -4260,18 +4260,6 @@ { "color": "rgb(255, 255, 255)", "value": null - }, - { - "color": "dark-red", - "value": 0 - }, - { - "color": "green", - "value": 1 - }, - { - "color": "dark-orange", - "value": 2 } ] } @@ -4316,12 +4304,61 @@ { "matcher": { "id": "byName", - "options": "Interface" + "options": "Status" }, "properties": [ { - "id": "custom.width", - "value": 121 + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(81, 48, 255, 0)", + "value": null + }, + { + "color": "red", + "value": 0 + }, + { + "color": "green", + "value": 1 + }, + { + "color": "dark-orange", + "value": 2 + } + ] + } + }, + { + "id": "mappings", + "value": [ + { + "from": "", + "id": 1, + "text": "DOWN", + "to": "", + "type": 1, + "value": "0" + }, + { + "from": "", + "id": 2, + "text": "UP", + "to": "", + "type": 1, + "value": "1" + }, + { + "from": "", + "id": 3, + "text": "UNKNOWN", + "to": "", + "type": 1, + "value": "2" + } + ] } ] } @@ -4868,7 +4905,7 @@ "type": "table" }, { - "collapsed": false, + "collapsed": true, "datasource": "$dataSource", "gridPos": { "h": 1, @@ -4877,1053 +4914,1089 @@ "y": 59 }, "id": 14, - "panels": [], + "panels": [ + { + "cacheTimeout": null, + "datasource": "$dataSource", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "displayMode": "color-text", + "filterable": false + }, + "mappings": [ + { + "from": "", + "id": 1, + "text": "DOWN", + "to": "", + "type": 1, + "value": "0" + }, + { + "from": "", + "id": 2, + "text": "UP", + "to": "", + "type": 1, + "value": "1" + }, + { + "from": "", + "id": 3, + "text": "UNKNOWN", + "to": "", + "type": 1, + "value": "2" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgb(255, 255, 255)", + "value": null + }, + { + "color": "red", + "value": 0 + }, + { + "color": "green", + "value": 1 + }, + { + "color": "orange", + "value": 2 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "name" + }, + "properties": [ + { + "id": "displayName", + "value": "Interface" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align", + "value": null + } + ] + } + ] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 60 + }, + "id": 603, + "links": [], + "options": { + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "7.4.3", + "scopedVars": { + "WAN": { + "selected": false, + "text": "igb0", + "value": "igb0" + } + }, + "targets": [ + { + "alias": "", + "groupBy": [ + { + "params": [ + "name" + ], + "type": "tag" + } + ], + "limit": "1", + "measurement": "interface", + "orderByTime": "ASC", + "policy": "autogen", + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "friendlyname" + ], + "type": "field" + }, + { + "params": [ + "FriendlyName" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "ip4_address" + ], + "type": "field" + }, + { + "params": [ + "IPv4 Address" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "mac_address" + ], + "type": "field" + }, + { + "params": [ + "Physical Address" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "status" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + }, + { + "params": [ + "Status" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + }, + { + "condition": "AND", + "key": "name", + "operator": "=~", + "value": "/^$WAN$/" + } + ] + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Interface summary", + "transformations": [ + { + "id": "merge", + "options": { + "reducers": [] + } + }, + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": [ + "name", + "FriendlyName", + "Physical Address", + "Status", + "IPv4 Address" + ] + } + } + } + ], + "type": "table" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$dataSource", + "decimals": 2, + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 9, + "x": 0, + "y": 63 + }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": false, + "rightSide": false, + "show": true, + "sort": "max", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.4.3", + "pointradius": 2, + "points": false, + "renderer": "flot", + "scopedVars": { + "WAN": { + "selected": false, + "text": "igb0", + "value": "igb0" + } + }, + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_interface - $col", + "groupBy": [ + { + "params": [ + "10s" + ], + "type": "time" + }, + { + "params": [ + "interface" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "bytes_recv" + ], + "type": "field" + }, + { + "params": [], + "type": "first" + }, + { + "params": [ + "1s" + ], + "type": "derivative" + }, + { + "params": [ + "* count(\"bytes_recv\") / count(\"bytes_recv\")" + ], + "type": "math" + }, + { + "params": [ + "Bytes_Recv" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "bytes_sent" + ], + "type": "field" + }, + { + "params": [], + "type": "first" + }, + { + "params": [ + "1s" + ], + "type": "derivative" + }, + { + "params": [ + "* count(\"bytes_sent\") / count(\"bytes_sent\")" + ], + "type": "math" + }, + { + "params": [ + "Bytes_Sent" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + }, + { + "condition": "AND", + "key": "interface", + "operator": "=~", + "value": "/^$WAN$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "WAN Traffic - $WAN (Bytes/sec)", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "Bps", + "label": "", + "logBase": 2, + "max": null, + "min": null, + "show": true + }, + { + "decimals": 2, + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "cacheTimeout": null, + "datasource": "$dataSource", + "fieldConfig": { + "defaults": { + "custom": {}, + "decimals": 2, + "mappings": [ + { + "id": 0, + "op": "=", + "text": "N/A", + "type": 1, + "value": "null" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 3, + "x": 9, + "y": 63 + }, + "id": 247, + "links": [], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.4.3", + "repeat": null, + "repeatDirection": "v", + "scopedVars": { + "WAN": { + "selected": false, + "text": "igb0", + "value": "igb0" + } + }, + "targets": [ + { + "alias": "$tag_interface - $col", + "groupBy": [ + { + "params": [ + "10s" + ], + "type": "time" + }, + { + "params": [ + "interface" + ], + "type": "tag" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "bytes_recv" + ], + "type": "field" + }, + { + "params": [], + "type": "first" + }, + { + "params": [ + "1s" + ], + "type": "derivative" + }, + { + "params": [ + "* count(\"bytes_recv\") / count(\"bytes_recv\") * 8" + ], + "type": "math" + }, + { + "params": [ + "Bits_Recv" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "bytes_sent" + ], + "type": "field" + }, + { + "params": [], + "type": "first" + }, + { + "params": [ + "1s" + ], + "type": "derivative" + }, + { + "params": [ + "* count(\"bytes_sent\") / count(\"bytes_sent\") * 8" + ], + "type": "math" + }, + { + "params": [ + "Bits_Sent" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + }, + { + "condition": "AND", + "key": "interface", + "operator": "=~", + "value": "/^$WAN$/" + } + ] + } + ], + "timeFrom": null, + "timeShift": null, + "title": "WAN Traffic - $WAN (Bits/sec)", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "$dataSource", + "fieldConfig": { + "defaults": { + "custom": {}, + "decimals": 2, + "mappings": [ + { + "id": 0, + "op": "=", + "text": "N/A", + "type": 1, + "value": "null" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 3, + "x": 12, + "y": 63 + }, + "hideTimeOverride": true, + "id": 296, + "links": [], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.4.3", + "repeat": null, + "repeatDirection": "v", + "scopedVars": { + "WAN": { + "selected": false, + "text": "igb0", + "value": "igb0" + } + }, + "targets": [ + { + "alias": "$tag_interface - $col - This Month", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "interface" + ], + "type": "tag" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "bytes_recv" + ], + "type": "field" + }, + { + "params": [], + "type": "first" + }, + { + "params": [], + "type": "non_negative_difference" + }, + { + "params": [ + "Bytes_Recv" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "bytes_sent" + ], + "type": "field" + }, + { + "params": [], + "type": "first" + }, + { + "params": [], + "type": "non_negative_difference" + }, + { + "params": [ + "Bytes_Sent" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + }, + { + "condition": "AND", + "key": "interface", + "operator": "=~", + "value": "/^$WAN$/" + } + ] + } + ], + "timeFrom": "now/M", + "timeShift": null, + "title": "WAN $WAN", + "type": "stat" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$dataSource", + "decimals": 2, + "description": "", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 9, + "x": 15, + "y": 63 + }, + "hiddenSeries": false, + "id": 322, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "hideZero": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sideWidth": null, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.4.3", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "repeatDirection": "v", + "scopedVars": { + "WAN": { + "selected": false, + "text": "igb0", + "value": "igb0" + } + }, + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_interface - $col", + "groupBy": [ + { + "params": [ + "10s" + ], + "type": "time" + }, + { + "params": [ + "interface" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "refId": "G", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "packets_recv" + ], + "type": "field" + }, + { + "params": [], + "type": "first" + }, + { + "params": [ + "1s" + ], + "type": "derivative" + }, + { + "params": [ + "* count(\"packets_recv\") / count(\"packets_recv\")" + ], + "type": "math" + }, + { + "params": [ + "Packets_Recv" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "packets_sent" + ], + "type": "field" + }, + { + "params": [], + "type": "first" + }, + { + "params": [ + "1s" + ], + "type": "derivative" + }, + { + "params": [ + "* count(\"packets_sent\") / count(\"packets_sent\")" + ], + "type": "math" + }, + { + "params": [ + "Packets_Sent" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$WAN$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - $col", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + }, + { + "params": [ + "interface" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "drop_in" + ], + "type": "field" + }, + { + "params": [ + "Drop_In" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "drop_out" + ], + "type": "field" + }, + { + "params": [ + "Drop_Out" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "err_in" + ], + "type": "field" + }, + { + "params": [ + "Err_In" + ], + "type": "alias" + } + ], + [ + { + "params": [ + "err_out" + ], + "type": "field" + }, + { + "params": [ + "Err_Out" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$WAN$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "WAN Throughput - $WAN", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "short", + "label": null, + "logBase": 2, + "max": null, + "min": null, + "show": true + }, + { + "decimals": 2, + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], "repeat": "WAN", "title": "WAN Interface - $WAN", "type": "row" }, - { - "cacheTimeout": null, - "datasource": "$dataSource", - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "center", - "displayMode": "color-text", - "filterable": false - }, - "mappings": [ - { - "from": "", - "id": 1, - "text": "DOWN", - "to": "", - "type": 1, - "value": "0" - }, - { - "from": "", - "id": 2, - "text": "UP", - "to": "", - "type": 1, - "value": "1" - }, - { - "from": "", - "id": 3, - "text": "UNKNOWN", - "to": "", - "type": 1, - "value": "2" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgb(255, 255, 255)", - "value": null - }, - { - "color": "red", - "value": 0 - }, - { - "color": "green", - "value": 1 - }, - { - "color": "orange", - "value": 2 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "name" - }, - "properties": [ - { - "id": "displayName", - "value": "Interface" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align", - "value": null - } - ] - } - ] - }, - "gridPos": { - "h": 3, - "w": 24, - "x": 0, - "y": 60 - }, - "id": 603, - "links": [], - "options": { - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "7.4.3", - "targets": [ - { - "alias": "", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "limit": "1", - "measurement": "interface", - "orderByTime": "ASC", - "policy": "autogen", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "friendlyname" - ], - "type": "field" - }, - { - "params": [ - "FriendlyName" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "ip4_address" - ], - "type": "field" - }, - { - "params": [ - "IPv4 Address" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "mac_address" - ], - "type": "field" - }, - { - "params": [ - "Physical Address" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "status" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Status" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$Host$/" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$WAN$/" - } - ] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Interface summary", - "transformations": [ - { - "id": "merge", - "options": { - "reducers": [] - } - }, - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "name", - "FriendlyName", - "Physical Address", - "Status", - "IPv4 Address" - ] - } - } - } - ], - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$dataSource", - "decimals": 2, - "fieldConfig": { - "defaults": { - "custom": {}, - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 9, - "x": 0, - "y": 63 - }, - "hiddenSeries": false, - "id": 2, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "rightSide": false, - "show": true, - "sort": "max", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.4.3", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_interface - $col", - "groupBy": [ - { - "params": [ - "10s" - ], - "type": "time" - }, - { - "params": [ - "interface" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "net", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "bytes_recv" - ], - "type": "field" - }, - { - "params": [], - "type": "first" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "* count(\"bytes_recv\") / count(\"bytes_recv\")" - ], - "type": "math" - }, - { - "params": [ - "Bytes_Recv" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "bytes_sent" - ], - "type": "field" - }, - { - "params": [], - "type": "first" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "* count(\"bytes_sent\") / count(\"bytes_sent\")" - ], - "type": "math" - }, - { - "params": [ - "Bytes_Sent" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$Host$/" - }, - { - "condition": "AND", - "key": "interface", - "operator": "=~", - "value": "/^$WAN$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "WAN Traffic - $WAN (Bytes/sec)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "Bps", - "label": "", - "logBase": 2, - "max": null, - "min": null, - "show": true - }, - { - "decimals": 2, - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "datasource": "$dataSource", - "fieldConfig": { - "defaults": { - "custom": {}, - "decimals": 2, - "mappings": [ - { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 3, - "x": 9, - "y": 63 - }, - "id": 247, - "links": [], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.4.3", - "repeat": null, - "repeatDirection": "v", - "targets": [ - { - "alias": "$tag_interface - $col", - "groupBy": [ - { - "params": [ - "10s" - ], - "type": "time" - }, - { - "params": [ - "interface" - ], - "type": "tag" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "net", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "bytes_recv" - ], - "type": "field" - }, - { - "params": [], - "type": "first" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "* count(\"bytes_recv\") / count(\"bytes_recv\") * 8" - ], - "type": "math" - }, - { - "params": [ - "Bits_Recv" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "bytes_sent" - ], - "type": "field" - }, - { - "params": [], - "type": "first" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "* count(\"bytes_sent\") / count(\"bytes_sent\") * 8" - ], - "type": "math" - }, - { - "params": [ - "Bits_Sent" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$Host$/" - }, - { - "condition": "AND", - "key": "interface", - "operator": "=~", - "value": "/^$WAN$/" - } - ] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "WAN Traffic - $WAN (Bits/sec)", - "type": "stat" - }, - { - "cacheTimeout": null, - "datasource": "$dataSource", - "fieldConfig": { - "defaults": { - "custom": {}, - "decimals": 2, - "mappings": [ - { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 3, - "x": 12, - "y": 63 - }, - "hideTimeOverride": true, - "id": 296, - "links": [], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "sum" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "7.4.3", - "repeat": null, - "repeatDirection": "v", - "targets": [ - { - "alias": "$tag_interface - $col - This Month", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "interface" - ], - "type": "tag" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "net", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "bytes_recv" - ], - "type": "field" - }, - { - "params": [], - "type": "first" - }, - { - "params": [], - "type": "non_negative_difference" - }, - { - "params": [ - "Bytes_Recv" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "bytes_sent" - ], - "type": "field" - }, - { - "params": [], - "type": "first" - }, - { - "params": [], - "type": "non_negative_difference" - }, - { - "params": [ - "Bytes_Sent" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$Host$/" - }, - { - "condition": "AND", - "key": "interface", - "operator": "=~", - "value": "/^$WAN$/" - } - ] - } - ], - "timeFrom": "now/M", - "timeShift": null, - "title": "WAN $WAN", - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$dataSource", - "decimals": 2, - "description": "", - "fieldConfig": { - "defaults": { - "custom": {}, - "links": [] - }, - "overrides": [] - }, - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 9, - "x": 15, - "y": 63 - }, - "hiddenSeries": false, - "id": 322, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideZero": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sideWidth": null, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.4.3", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": null, - "repeatDirection": "v", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_interface - $col", - "groupBy": [ - { - "params": [ - "10s" - ], - "type": "time" - }, - { - "params": [ - "interface" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "net", - "orderByTime": "ASC", - "policy": "default", - "refId": "G", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "packets_recv" - ], - "type": "field" - }, - { - "params": [], - "type": "first" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "* count(\"packets_recv\") / count(\"packets_recv\")" - ], - "type": "math" - }, - { - "params": [ - "Packets_Recv" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "packets_sent" - ], - "type": "field" - }, - { - "params": [], - "type": "first" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "* count(\"packets_sent\") / count(\"packets_sent\")" - ], - "type": "math" - }, - { - "params": [ - "Packets_Sent" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "interface", - "operator": "=~", - "value": "/^$WAN$/" - }, - { - "condition": "AND", - "key": "host", - "operator": "=~", - "value": "/^$Host$/" - } - ] - }, - { - "alias": "$tag_interface - $col", - "groupBy": [ - { - "params": [ - "interface" - ], - "type": "tag" - }, - { - "params": [ - "interface" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "net", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "drop_in" - ], - "type": "field" - }, - { - "params": [ - "Drop_In" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "drop_out" - ], - "type": "field" - }, - { - "params": [ - "Drop_Out" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "err_in" - ], - "type": "field" - }, - { - "params": [ - "Err_In" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "err_out" - ], - "type": "field" - }, - { - "params": [ - "Err_Out" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "interface", - "operator": "=~", - "value": "/^$WAN$/" - }, - { - "condition": "AND", - "key": "host", - "operator": "=~", - "value": "/^$Host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "WAN Throughput - $WAN", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "short", - "label": null, - "logBase": 2, - "max": null, - "min": null, - "show": true - }, - { - "decimals": 2, - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, { "collapsed": true, "datasource": "$dataSource", @@ -5931,7 +6004,7 @@ "h": 1, "w": 24, "x": 0, - "y": 83 + "y": 61 }, "id": 43, "panels": [ @@ -7139,7 +7212,7 @@ ] }, "time": { - "from": "now-6h", + "from": "now-24h", "to": "now" }, "timepicker": { @@ -7159,5 +7232,5 @@ "timezone": "", "title": "pfSense System Dashboard", "uid": "GflT1CsMz", - "version": 240 + "version": 241 }