From ffae9394523b4685af32a3dca454723c920a0165 Mon Sep 17 00:00:00 2001 From: tiny6996 Date: Mon, 18 May 2020 22:05:54 -0500 Subject: [PATCH] set wan interface as variable and changed names for pfblocker --- pfSense-Grafana-Dashboard.json | 3032 +++++++++++++++++++++++--------- 1 file changed, 2239 insertions(+), 793 deletions(-) diff --git a/pfSense-Grafana-Dashboard.json b/pfSense-Grafana-Dashboard.json index 1812e4b..7a49887 100755 --- a/pfSense-Grafana-Dashboard.json +++ b/pfSense-Grafana-Dashboard.json @@ -1,68 +1,7 @@ { - "__inputs": [ - { - "name": "DS_INFLUXDB", - "label": "InfluxDB", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__requires": [ - { - "type": "panel", - "id": "gauge", - "name": "Gauge", - "version": "" - }, - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.7.2" - }, - { - "type": "panel", - "id": "grafana-piechart-panel", - "name": "Pie Chart", - "version": "1.4.0" - }, - { - "type": "panel", - "id": "grafana-worldmap-panel", - "name": "Worldmap Panel", - "version": "0.2.1" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - } - ], "annotations": { "list": [ { - "$$hashKey": "object:327", "builtIn": 1, "datasource": "-- Grafana --", "enable": true, @@ -76,13 +15,13 @@ "editable": true, "gnetId": null, "graphTooltip": 0, - "id": null, - "iteration": 1588523576991, + "id": 7, + "iteration": 1589857465930, "links": [], "panels": [ { "collapsed": false, - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "gridPos": { "h": 1, "w": 24, @@ -127,12 +66,10 @@ "mappingType": 1, "mappingTypes": [ { - "$$hashKey": "object:971", "name": "value to text", "value": 1 }, { - "$$hashKey": "object:972", "name": "range to text", "value": 2 } @@ -195,7 +132,6 @@ "valueFontSize": "80%", "valueMaps": [ { - "$$hashKey": "object:974", "op": "=", "text": "N/A", "value": "null" @@ -204,7 +140,7 @@ "valueName": "current" }, { - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "gridPos": { "h": 6, "w": 2, @@ -248,7 +184,7 @@ "showThresholdLabels": false, "showThresholdMarkers": true }, - "pluginVersion": "6.7.2", + "pluginVersion": "6.7.3", "targets": [ { "alias": "CPU Total", @@ -312,11 +248,158 @@ "type": "gauge" }, { - "datasource": "${DS_INFLUXDB}", + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "pfsense", + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 6, + "w": 6, + "x": 4, + "y": 1 + }, + "hiddenSeries": false, + "id": 6, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeat": null, + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_cpu", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "cpu" + ], + "type": "tag" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "measurement": "cpu", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "usage_idle" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "* -1 + 100" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + }, + { + "condition": "AND", + "key": "cpu", + "operator": "=~", + "value": "/^$CPU$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "CPU", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "label": null, + "logBase": 1, + "max": "100", + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "datasource": "pfsense", "gridPos": { "h": 6, "w": 2, - "x": 4, + "x": 10, "y": 1 }, "id": 10, @@ -356,7 +439,7 @@ "showThresholdLabels": false, "showThresholdMarkers": true }, - "pluginVersion": "6.7.2", + "pluginVersion": "6.7.3", "targets": [ { "alias": "Load", @@ -404,328 +487,21 @@ ], "timeFrom": null, "timeShift": null, - "title": "System Load", + "title": "", "type": "gauge" }, - { - "datasource": "${DS_INFLUXDB}", - "gridPos": { - "h": 6, - "w": 2, - "x": 6, - "y": 1 - }, - "id": 12, - "options": { - "fieldOptions": { - "calcs": [ - "last" - ], - "defaults": { - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 75 - }, - { - "color": "red", - "value": 85 - } - ] - }, - "title": "Ram", - "unit": "percent" - }, - "overrides": [], - "values": false - }, - "orientation": "auto", - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "6.7.2", - "targets": [ - { - "alias": "Ram", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "mem", - "orderByTime": "ASC", - "policy": "autogen", - "query": "SELECT mean(\"value\") FROM \"measurement\" WHERE $timeFilter GROUP BY time($__interval) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "used_percent" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$Host$/" - } - ] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Memory Utilization", - "type": "gauge" - }, - { - "cacheTimeout": null, - "datasource": "$dataSource", - "description": "", - "gridPos": { - "h": 6, - "w": 4, - "x": 8, - "y": 1 - }, - "id": 223, - "links": [], - "options": { - "fieldOptions": { - "calcs": [ - "lastNotNull" - ], - "defaults": { - "mappings": [], - "nullValueMode": "connected", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 60 - }, - { - "color": "#d44a3a", - "value": 85 - } - ] - }, - "title": "${__series.name}", - "unit": "percent" - }, - "overrides": [], - "values": false - }, - "orientation": "horizontal", - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "6.7.2", - "repeatDirection": "h", - "targets": [ - { - "alias": "$tag_device", - "groupBy": [ - { - "params": [ - "device" - ], - "type": "tag" - } - ], - "measurement": "disk", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"used_percent\" FROM \"disk\" WHERE (\"host\" =~ /^$Host$/ AND \"path\" = '/var/run' AND \"device\" =~ /^$Disk$/) AND $timeFilter GROUP BY \"device\"", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "used_percent" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$Host$/" - }, - { - "condition": "AND", - "key": "device", - "operator": "!=", - "value": "devfs" - } - ] - } - ], - "title": "Disk Utilization", - "type": "gauge" - }, - { - "columns": [], - "datasource": "${DS_INFLUXDB}", - "fontSize": "100%", - "gridPos": { - "h": 3, - "w": 5, - "x": 12, - "y": 1 - }, - "id": 220, - "pageSize": null, - "showHeader": true, - "sort": { - "col": 6, - "desc": false - }, - "styles": [ - { - "$$hashKey": "object:838", - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "$$hashKey": "object:839", - "alias": "", - "align": "right", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 0, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "locale" - } - ], - "targets": [ - { - "groupBy": [], - "measurement": "pf", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "match" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Match" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "state-mismatch" - ], - "type": "field" - }, - { - "params": [ - "State Mismatch" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "state-insert" - ], - "type": "field" - }, - { - "params": [ - "State Insert" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$Host$/" - } - ] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "PF Information", - "transform": "table", - "type": "table" - }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, - "w": 7, - "x": 17, + "w": 6, + "x": 12, "y": 1 }, "hiddenSeries": false, @@ -872,12 +648,10 @@ "mappingType": 1, "mappingTypes": [ { - "$$hashKey": "object:345", "name": "value to text", "value": 1 }, { - "$$hashKey": "object:346", "name": "range to text", "value": 2 } @@ -938,7 +712,6 @@ "valueFontSize": "50%", "valueMaps": [ { - "$$hashKey": "object:348", "op": "=", "text": "N/A", "value": "null" @@ -947,219 +720,80 @@ "valueName": "current" }, { - "columns": [], - "datasource": "${DS_INFLUXDB}", - "fontSize": "100%", - "gridPos": { - "h": 3, - "w": 5, - "x": 12, - "y": 4 - }, - "id": 219, - "pageSize": null, - "showHeader": true, - "sort": { - "col": 6, - "desc": false - }, - "styles": [ - { - "$$hashKey": "object:838", - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "$$hashKey": "object:839", - "alias": "", - "align": "right", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 0, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "groupBy": [], - "measurement": "processes", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "running" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Running" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "idle" - ], - "type": "field" - } - ], - [ - { - "params": [ - "sleeping" - ], - "type": "field" - } - ], - [ - { - "params": [ - "wait" - ], - "type": "field" - } - ], - [ - { - "params": [ - "blocked" - ], - "type": "field" - } - ], - [ - { - "params": [ - "zombies" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$Host$/" - } - ] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Process Information", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_INFLUXDB}", - "fill": 1, - "fillGradient": 0, + "cacheTimeout": null, + "datasource": "$dataSource", + "description": "", "gridPos": { "h": 6, - "w": 8, + "w": 2, "x": 0, "y": 7 }, - "hiddenSeries": false, - "id": 6, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", + "id": 47, + "links": [], "options": { - "dataLinks": [] + "fieldOptions": { + "calcs": [ + "lastNotNull" + ], + "defaults": { + "mappings": [], + "nullValueMode": "connected", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 50 + }, + { + "color": "#d44a3a", + "value": 80 + } + ] + }, + "title": "${__series.name}", + "unit": "percent" + }, + "overrides": [], + "values": false + }, + "orientation": "horizontal", + "showThresholdLabels": false, + "showThresholdMarkers": true }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", + "pluginVersion": "6.7.3", "repeat": null, "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { - "alias": "$tag_cpu", + "alias": "$tag_device", "groupBy": [ { "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "cpu" + "device" ], "type": "tag" - }, - { - "params": [ - "none" - ], - "type": "fill" } ], - "measurement": "cpu", + "measurement": "disk", "orderByTime": "ASC", "policy": "default", + "query": "SELECT \"used_percent\" FROM \"disk\" WHERE (\"host\" =~ /^$Host$/ AND \"path\" = '/var/run' AND \"device\" =~ /^$Disk$/) AND $timeFilter GROUP BY \"device\"", + "rawQuery": false, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ - "usage_idle" + "used_percent" ], "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "* -1 + 100" - ], - "type": "math" } ] ], @@ -1171,68 +805,126 @@ }, { "condition": "AND", - "key": "cpu", - "operator": "=~", - "value": "/^$CPU$/" + "key": "path", + "operator": "=", + "value": "/var/run" } ] } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" + "title": "Disk Utilization", + "type": "gauge" + }, + { + "datasource": "pfsense", + "gridPos": { + "h": 6, + "w": 2, + "x": 2, + "y": 7 }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:15942", - "format": "percent", - "label": null, - "logBase": 1, - "max": "100", - "min": "0", - "show": true + "id": 12, + "options": { + "fieldOptions": { + "calcs": [ + "last" + ], + "defaults": { + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 75 + }, + { + "color": "red", + "value": 85 + } + ] + }, + "title": "Ram", + "unit": "percent" + }, + "overrides": [], + "values": false }, + "orientation": "auto", + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "6.7.3", + "targets": [ { - "$$hashKey": "object:15943", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "alias": "Ram", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "previous" + ], + "type": "fill" + } + ], + "measurement": "mem", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT mean(\"value\") FROM \"measurement\" WHERE $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_percent" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "timeFrom": null, + "timeShift": null, + "title": "Memory Utilization", + "type": "gauge" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 6, - "x": 8, + "x": 4, "y": 7 }, "hiddenSeries": false, @@ -1243,7 +935,7 @@ "current": true, "max": false, "min": false, - "rightSide": true, + "rightSide": false, "show": true, "total": false, "values": true @@ -1327,7 +1019,6 @@ }, "yaxes": [ { - "$$hashKey": "object:473", "format": "percent", "label": null, "logBase": 1, @@ -1336,7 +1027,6 @@ "show": true }, { - "$$hashKey": "object:474", "format": "short", "label": null, "logBase": 1, @@ -1355,13 +1045,13 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, - "w": 10, - "x": 14, + "w": 8, + "x": 10, "y": 7 }, "hiddenSeries": false, @@ -1468,7 +1158,6 @@ }, "yaxes": [ { - "$$hashKey": "object:11067", "format": "celsius", "label": null, "logBase": 1, @@ -1477,7 +1166,6 @@ "show": true }, { - "$$hashKey": "object:11068", "format": "short", "label": null, "logBase": 1, @@ -1493,7 +1181,7 @@ }, { "collapsed": false, - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "gridPos": { "h": 1, "w": 24, @@ -1544,7 +1232,7 @@ }, "targets": [ { - "alias": "$tag_GeoIP", + "alias": "[[tag_country-code]]", "groupBy": [ { "params": [ @@ -1554,12 +1242,12 @@ }, { "params": [ - "GeoIP" + "country-code" ], "type": "tag" } ], - "measurement": "ip_block_log", + "measurement": "tail_ipblock", "orderByTime": "ASC", "policy": "default", "query": "SELECT count(\"action\") FROM \"ip_block_log\" WHERE $timeFilter GROUP BY \"GeoIP\"", @@ -1570,7 +1258,7 @@ [ { "params": [ - "action" + "code" ], "type": "field" }, @@ -1607,7 +1295,7 @@ "rgba(237, 129, 40, 0.89)", "#d44a3a" ], - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "format": "locale", "gauge": { "maxValue": 100, @@ -1628,12 +1316,10 @@ "mappingType": 1, "mappingTypes": [ { - "$$hashKey": "object:1171", "name": "value to text", "value": 1 }, { - "$$hashKey": "object:1172", "name": "range to text", "value": 2 } @@ -1664,7 +1350,7 @@ "targets": [ { "groupBy": [], - "measurement": "dnsbl_log", + "measurement": "tail_dnsbl", "orderByTime": "ASC", "policy": "default", "query": "SELECT count(\"hitormiss\") FROM \"dnsbl_log\" WHERE (\"host\" =~ /^$Host$/) AND $timeFilter", @@ -1675,7 +1361,7 @@ [ { "params": [ - "hitormiss" + "filter-type" ], "type": "field" }, @@ -1702,7 +1388,6 @@ "valueFontSize": "80%", "valueMaps": [ { - "$$hashKey": "object:1174", "op": "=", "text": "N/A", "value": "null" @@ -1718,98 +1403,16 @@ "label": "Others", "threshold": 0 }, - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "decimals": null, "fontSize": "80%", "format": "locale", "gridPos": { "h": 9, - "w": 5, + "w": 8, "x": 10, "y": 14 }, - "id": 234, - "interval": null, - "legend": { - "percentage": true, - "percentageDecimals": 2, - "show": true, - "sideWidth": null, - "sort": "total", - "sortDesc": true, - "values": true - }, - "legendType": "Right side", - "links": [], - "maxDataPoints": 3, - "nullPointMode": "connected", - "pieType": "pie", - "strokeWidth": ".5", - "targets": [ - { - "alias": "[[tag_source]]", - "groupBy": [ - { - "params": [ - "source" - ], - "type": "tag" - } - ], - "measurement": "dnsbl_log", - "orderByTime": "ASC", - "policy": "autogen", - "query": "SELECT count(\"hitormiss\") FROM \"autogen\".\"dnsbl_log\" WHERE (\"host\" =~ /^$Host$/) AND $timeFilter GROUP BY \"destination\"", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hitormiss" - ], - "type": "field" - }, - { - "params": [], - "type": "count" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$Host$/" - } - ] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "pfBlocker - DNS - Internal hosts - Blocked Queries", - "type": "grafana-piechart-panel", - "valueName": "total" - }, - { - "aliasColors": {}, - "breakPoint": "50%", - "cacheTimeout": null, - "combine": { - "label": "Others", - "threshold": 0 - }, - "datasource": "${DS_INFLUXDB}", - "decimals": null, - "fontSize": "80%", - "format": "locale", - "gridPos": { - "h": 9, - "w": 9, - "x": 15, - "y": 14 - }, "id": 160, "interval": null, "legend": { @@ -1829,16 +1432,16 @@ "strokeWidth": ".5", "targets": [ { - "alias": "[[tag_destination]]", + "alias": "[[tag_domain]]", "groupBy": [ { "params": [ - "destination" + "domain" ], "type": "tag" } ], - "measurement": "dnsbl_log", + "measurement": "tail_dnsbl", "orderByTime": "ASC", "policy": "autogen", "query": "SELECT count(\"hitormiss\") FROM \"autogen\".\"dnsbl_log\" WHERE (\"host\" =~ /^$Host$/) AND $timeFilter GROUP BY \"destination\"", @@ -1849,7 +1452,7 @@ [ { "params": [ - "hitormiss" + "block-list" ], "type": "field" }, @@ -1883,7 +1486,7 @@ "rgba(237, 129, 40, 0.89)", "#d44a3a" ], - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "decimals": 0, "format": "locale", "gauge": { @@ -1905,12 +1508,10 @@ "mappingType": 1, "mappingTypes": [ { - "$$hashKey": "object:194", "name": "value to text", "value": 1 }, { - "$$hashKey": "object:195", "name": "range to text", "value": 2 } @@ -1924,7 +1525,6 @@ "prefixFontSize": "50%", "rangeMaps": [ { - "$$hashKey": "object:225", "from": "null", "text": "N/A", "to": "null" @@ -1942,7 +1542,7 @@ "targets": [ { "groupBy": [], - "measurement": "ip_block_log", + "measurement": "tail_ipblock", "orderByTime": "ASC", "policy": "default", "query": "SELECT count(\"hitormiss\") FROM \"dnsbl_log\" WHERE (\"host\" =~ /^$Host$/) AND $timeFilter", @@ -1980,7 +1580,6 @@ "valueFontSize": "80%", "valueMaps": [ { - "$$hashKey": "object:197", "op": "=", "text": "N/A", "value": "null" @@ -1990,7 +1589,7 @@ }, { "collapsed": false, - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "gridPos": { "h": 1, "w": 24, @@ -2007,13 +1606,13 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "description": "", "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, - "w": 15, + "w": 9, "x": 0, "y": 24 }, @@ -2025,7 +1624,7 @@ "current": true, "max": true, "min": true, - "rightSide": true, + "rightSide": false, "show": true, "sideWidth": null, "total": false, @@ -2124,16 +1723,14 @@ }, "yaxes": [ { - "$$hashKey": "object:304", "format": "µs", "label": "", - "logBase": 2, + "logBase": 1, "max": null, "min": null, "show": true }, { - "$$hashKey": "object:305", "format": "short", "label": null, "logBase": 1, @@ -2150,13 +1747,13 @@ { "cacheTimeout": null, "columns": [], - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "description": "", "fontSize": "100%", "gridPos": { "h": 8, "w": 9, - "x": 15, + "x": 9, "y": 24 }, "id": 194, @@ -2166,12 +1763,11 @@ "scroll": true, "showHeader": true, "sort": { - "col": 2, + "col": 1, "desc": false }, "styles": [ { - "$$hashKey": "object:7480", "alias": "Time", "align": "auto", "dateFormat": "YYYY-MM-DD HH:mm:ss", @@ -2180,7 +1776,6 @@ "type": "hidden" }, { - "$$hashKey": "object:7481", "alias": "", "align": "auto", "colorMode": "value", @@ -2201,24 +1796,20 @@ "unit": "short", "valueMaps": [ { - "$$hashKey": "object:7515", "text": "DOWN", "value": "0" }, { - "$$hashKey": "object:7516", "text": "UP", "value": "1" }, { - "$$hashKey": "object:7517", "text": "UNKNOWN", "value": "2" } ] }, { - "$$hashKey": "object:470", "alias": "Interface", "align": "auto", "colorMode": null, @@ -2326,7 +1917,7 @@ }, { "collapsed": false, - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "gridPos": { "h": 1, "w": 24, @@ -2336,6 +1927,13 @@ "id": 14, "panels": [], "repeat": "WAN", + "scopedVars": { + "WAN": { + "selected": true, + "text": "vtnet1", + "value": "vtnet1" + } + }, "title": "WAN - $WAN", "type": "row" }, @@ -2344,12 +1942,12 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, - "w": 12, + "w": 9, "x": 0, "y": 33 }, @@ -2376,6 +1974,13 @@ "pointradius": 2, "points": false, "renderer": "flot", + "scopedVars": { + "WAN": { + "selected": true, + "text": "vtnet1", + "value": "vtnet1" + } + }, "seriesOverrides": [], "spaceLength": 10, "stack": true, @@ -2523,7 +2128,6 @@ }, "yaxes": [ { - "$$hashKey": "object:842", "format": "bps", "label": "", "logBase": 2, @@ -2532,7 +2136,6 @@ "show": true }, { - "$$hashKey": "object:843", "format": "short", "label": null, "logBase": 1, @@ -2557,8 +2160,8 @@ "fillGradient": 0, "gridPos": { "h": 8, - "w": 12, - "x": 12, + "w": 9, + "x": 9, "y": 33 }, "hiddenSeries": false, @@ -2587,6 +2190,13 @@ "pointradius": 5, "points": false, "renderer": "flot", + "scopedVars": { + "WAN": { + "selected": true, + "text": "vtnet1", + "value": "vtnet1" + } + }, "seriesOverrides": [], "spaceLength": 10, "stack": false, @@ -2748,7 +2358,7 @@ }, { "params": [ - "1s" + "10s" ], "type": "derivative" } @@ -2788,7 +2398,7 @@ }, { "params": [ - "1s" + "10s" ], "type": "derivative" } @@ -2829,7 +2439,6 @@ }, "yaxes": [ { - "$$hashKey": "object:1433", "format": "short", "label": null, "logBase": 2, @@ -2838,7 +2447,6 @@ "show": true }, { - "$$hashKey": "object:1434", "format": "short", "label": null, "logBase": 1, @@ -2854,7 +2462,7 @@ }, { "collapsed": false, - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "gridPos": { "h": 1, "w": 24, @@ -2871,12 +2479,12 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${DS_INFLUXDB}", + "datasource": "pfsense", "fill": 1, "fillGradient": 0, "gridPos": { "h": 7, - "w": 12, + "w": 9, "x": 0, "y": 42 }, @@ -2905,6 +2513,13 @@ "renderer": "flot", "repeat": "LAN_Interfaces", "repeatDirection": "v", + "scopedVars": { + "LAN_Interfaces": { + "selected": true, + "text": "ovpns1", + "value": "ovpns1" + } + }, "seriesOverrides": [], "spaceLength": 10, "stack": false, @@ -3070,7 +2685,6 @@ }, "yaxes": [ { - "$$hashKey": "object:1802", "format": "bps", "label": "", "logBase": 2, @@ -3079,7 +2693,6 @@ "show": true }, { - "$$hashKey": "object:1803", "format": "short", "label": null, "logBase": 1, @@ -3104,8 +2717,8 @@ "fillGradient": 0, "gridPos": { "h": 7, - "w": 12, - "x": 12, + "w": 9, + "x": 9, "y": 42 }, "hiddenSeries": false, @@ -3136,6 +2749,13 @@ "renderer": "flot", "repeat": "LAN_Interfaces", "repeatDirection": "v", + "scopedVars": { + "LAN_Interfaces": { + "selected": true, + "text": "ovpns1", + "value": "ovpns1" + } + }, "seriesOverrides": [], "spaceLength": 10, "stack": false, @@ -3332,7 +2952,7 @@ }, { "params": [ - "1s" + "10s" ], "type": "derivative" } @@ -3379,7 +2999,1780 @@ }, { "params": [ - "1s" + "10s" + ], + "type": "derivative" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "LAN Throughput - $LAN_Interfaces", + "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": 2, + "max": null, + "min": null, + "show": true + }, + { + "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": "pfsense", + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 9, + "x": 0, + "y": 49 + }, + "hiddenSeries": false, + "id": 208, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "connected", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeat": null, + "repeatDirection": "v", + "repeatIteration": 1589857465930, + "repeatPanelId": 38, + "scopedVars": { + "LAN_Interfaces": { + "selected": true, + "text": "vtnet0", + "value": "vtnet0" + } + }, + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_interface - LAN Traffic Recv", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "interface" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT derivative(mean(\"bytes_recv\"), 1s) *-1 FROM \"autogen\".\"net\" WHERE (\"host\" = 'pfSense-home-master.home' AND \"interface\" = 'vtnet0') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "bytes_recv" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "1s" + ], + "type": "derivative" + }, + { + "params": [ + "*8" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + }, + { + "condition": "AND", + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + } + ] + }, + { + "alias": "$tag_interface - LAN Traffic Sent", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "interface" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT derivative(mean(\"bytes_sent\"), 1s) FROM \"net\" WHERE (\"host\" = 'pfSense-home-master.home' AND \"interface\" = 'vtnet0') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "bytes_sent" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "1s" + ], + "type": "derivative" + }, + { + "params": [ + "*8" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + }, + { + "condition": "AND", + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "LAN Traffic - $LAN_Interfaces", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bps", + "label": "", + "logBase": 2, + "max": null, + "min": null, + "show": true + }, + { + "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": "$dataSource", + "description": "", + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 9, + "x": 9, + "y": 49 + }, + "hiddenSeries": false, + "id": 211, + "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": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "repeatDirection": "v", + "repeatIteration": 1589857465930, + "repeatPanelId": 39, + "scopedVars": { + "LAN_Interfaces": { + "selected": true, + "text": "vtnet0", + "value": "vtnet0" + } + }, + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_interface - Drop In", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"drop_in\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "drop_in" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Drop Out", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"drop_out\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "drop_out" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Err In", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"err_in\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "err_in" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Err Out", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"err_out\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "F", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "err_out" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Pckts Recv", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"packets_recv\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "G", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "packets_recv" + ], + "type": "field" + }, + { + "params": [ + "10s" + ], + "type": "derivative" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Pckts Sent", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"packets_sent\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "H", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "packets_sent" + ], + "type": "field" + }, + { + "params": [ + "10s" + ], + "type": "derivative" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "LAN Throughput - $LAN_Interfaces", + "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": 2, + "max": null, + "min": null, + "show": true + }, + { + "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": "pfsense", + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 9, + "x": 0, + "y": 56 + }, + "hiddenSeries": false, + "id": 209, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "connected", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeat": null, + "repeatDirection": "v", + "repeatIteration": 1589857465930, + "repeatPanelId": 38, + "scopedVars": { + "LAN_Interfaces": { + "selected": true, + "text": "vtnet0.420", + "value": "vtnet0.420" + } + }, + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_interface - LAN Traffic Recv", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "interface" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT derivative(mean(\"bytes_recv\"), 1s) *-1 FROM \"autogen\".\"net\" WHERE (\"host\" = 'pfSense-home-master.home' AND \"interface\" = 'vtnet0') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "bytes_recv" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "1s" + ], + "type": "derivative" + }, + { + "params": [ + "*8" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + }, + { + "condition": "AND", + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + } + ] + }, + { + "alias": "$tag_interface - LAN Traffic Sent", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "interface" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT derivative(mean(\"bytes_sent\"), 1s) FROM \"net\" WHERE (\"host\" = 'pfSense-home-master.home' AND \"interface\" = 'vtnet0') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "bytes_sent" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "1s" + ], + "type": "derivative" + }, + { + "params": [ + "*8" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + }, + { + "condition": "AND", + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "LAN Traffic - $LAN_Interfaces", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bps", + "label": "", + "logBase": 2, + "max": null, + "min": null, + "show": true + }, + { + "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": "$dataSource", + "description": "", + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 9, + "x": 9, + "y": 56 + }, + "hiddenSeries": false, + "id": 212, + "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": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "repeatDirection": "v", + "repeatIteration": 1589857465930, + "repeatPanelId": 39, + "scopedVars": { + "LAN_Interfaces": { + "selected": true, + "text": "vtnet0.420", + "value": "vtnet0.420" + } + }, + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_interface - Drop In", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"drop_in\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "drop_in" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Drop Out", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"drop_out\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "drop_out" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Err In", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"err_in\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "err_in" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Err Out", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"err_out\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "F", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "err_out" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Pckts Recv", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"packets_recv\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "G", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "packets_recv" + ], + "type": "field" + }, + { + "params": [ + "10s" + ], + "type": "derivative" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Pckts Sent", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"packets_sent\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "H", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "packets_sent" + ], + "type": "field" + }, + { + "params": [ + "10s" + ], + "type": "derivative" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "LAN Throughput - $LAN_Interfaces", + "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": 2, + "max": null, + "min": null, + "show": true + }, + { + "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": "pfsense", + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 9, + "x": 0, + "y": 63 + }, + "hiddenSeries": false, + "id": 210, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "connected", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeat": null, + "repeatDirection": "v", + "repeatIteration": 1589857465930, + "repeatPanelId": 38, + "scopedVars": { + "LAN_Interfaces": { + "selected": true, + "text": "vtnet0.69", + "value": "vtnet0.69" + } + }, + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_interface - LAN Traffic Recv", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "interface" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT derivative(mean(\"bytes_recv\"), 1s) *-1 FROM \"autogen\".\"net\" WHERE (\"host\" = 'pfSense-home-master.home' AND \"interface\" = 'vtnet0') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "bytes_recv" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "1s" + ], + "type": "derivative" + }, + { + "params": [ + "*8" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + }, + { + "condition": "AND", + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + } + ] + }, + { + "alias": "$tag_interface - LAN Traffic Sent", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "interface" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT derivative(mean(\"bytes_sent\"), 1s) FROM \"net\" WHERE (\"host\" = 'pfSense-home-master.home' AND \"interface\" = 'vtnet0') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "bytes_sent" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "1s" + ], + "type": "derivative" + }, + { + "params": [ + "*8" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + }, + { + "condition": "AND", + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "LAN Traffic - $LAN_Interfaces", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bps", + "label": "", + "logBase": 2, + "max": null, + "min": null, + "show": true + }, + { + "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": "$dataSource", + "description": "", + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 9, + "x": 9, + "y": 63 + }, + "hiddenSeries": false, + "id": 213, + "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": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "repeatDirection": "v", + "repeatIteration": 1589857465930, + "repeatPanelId": 39, + "scopedVars": { + "LAN_Interfaces": { + "selected": true, + "text": "vtnet0.69", + "value": "vtnet0.69" + } + }, + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_interface - Drop In", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"drop_in\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "drop_in" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Drop Out", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"drop_out\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "drop_out" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Err In", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"err_in\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "err_in" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Err Out", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"err_out\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "F", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "err_out" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Pckts Recv", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"packets_recv\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "G", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "packets_recv" + ], + "type": "field" + }, + { + "params": [ + "10s" + ], + "type": "derivative" + } + ] + ], + "tags": [ + { + "key": "interface", + "operator": "=~", + "value": "/^$LAN_Interfaces$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$Host$/" + } + ] + }, + { + "alias": "$tag_interface - Pckts Sent", + "groupBy": [ + { + "params": [ + "interface" + ], + "type": "tag" + } + ], + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"packets_sent\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "H", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "packets_sent" + ], + "type": "field" + }, + { + "params": [ + "10s" ], "type": "derivative" } @@ -3420,7 +4813,6 @@ }, "yaxes": [ { - "$$hashKey": "object:1249", "format": "short", "label": null, "logBase": 2, @@ -3429,7 +4821,6 @@ "show": true }, { - "$$hashKey": "object:1250", "format": "short", "label": null, "logBase": 1, @@ -3444,7 +4835,7 @@ } } ], - "refresh": "30s", + "refresh": false, "schemaVersion": 22, "style": "dark", "tags": [ @@ -3457,8 +4848,8 @@ { "current": { "selected": false, - "text": "InfluxDB", - "value": "InfluxDB" + "text": "pfsense", + "value": "pfsense" }, "hide": 0, "includeAll": false, @@ -3474,7 +4865,10 @@ }, { "allValue": null, - "current": {}, + "current": { + "text": "rose.local.mathiasp.me", + "value": "rose.local.mathiasp.me" + }, "datasource": "$dataSource", "definition": "SHOW TAG VALUES FROM \"pf\" WITH KEY = \"host\"", "hide": 0, @@ -3497,9 +4891,13 @@ }, { "allValue": null, - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": "$dataSource", - "definition": "SHOW TAG VALUES FROM \"disk\" WITH KEY = \"device\" WHERE \"host\" =~ /^$Host$/", + "definition": "SHOW TAG VALUES FROM \"diskio\" WITH KEY = \"name\" WHERE \"host\" =~ /^$Host$/", "hide": 0, "includeAll": true, "index": -1, @@ -3507,7 +4905,7 @@ "multi": false, "name": "Disk", "options": [], - "query": "SHOW TAG VALUES FROM \"disk\" WITH KEY = \"device\" WHERE \"host\" =~ /^$Host$/", + "query": "SHOW TAG VALUES FROM \"diskio\" WITH KEY = \"name\" WHERE \"host\" =~ /^$Host$/", "refresh": 1, "regex": "", "skipUrlSync": false, @@ -3520,7 +4918,11 @@ }, { "allValue": null, - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": "$dataSource", "definition": "SHOW TAG VALUES FROM \"gateways\" WITH KEY = \"gateway_name\" WHERE \"host\" =~ /^$Host$/ ", "hide": 0, @@ -3544,39 +4946,71 @@ { "allValue": null, "current": { - "selected": false, - "tags": [], - "text": "All", - "value": [ - "$__all" - ] + "text": "vtnet1", + "value": "vtnet1" }, + "datasource": "pfsense", + "definition": "SHOW TAG VALUES FROM \"net\" WITH KEY = \"interface\" WHERE \"host\" =~ /^$Host$/ ", "hide": 0, "includeAll": true, + "index": -1, "label": null, "multi": true, "name": "WAN", "options": [ { - "$$hashKey": "object:755", - "selected": true, + "selected": false, "text": "All", "value": "$__all" }, { - "$$hashKey": "object:756", "selected": false, - "text": "igb0", - "value": "igb0" + "text": "ovpns1", + "value": "ovpns1" + }, + { + "selected": false, + "text": "vtnet0", + "value": "vtnet0" + }, + { + "selected": false, + "text": "vtnet0.420", + "value": "vtnet0.420" + }, + { + "selected": false, + "text": "vtnet0.69", + "value": "vtnet0.69" + }, + { + "selected": true, + "text": "vtnet1", + "value": "vtnet1" } ], - "query": "igb0", + "query": "SHOW TAG VALUES FROM \"net\" WITH KEY = \"interface\" WHERE \"host\" =~ /^$Host$/ ", + "refresh": 0, + "regex": "", "skipUrlSync": false, - "type": "custom" + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false }, { "allValue": null, - "current": {}, + "current": { + "text": "ovpns1 + vtnet0 + vtnet0.420 + vtnet0.69", + "value": [ + "ovpns1", + "vtnet0", + "vtnet0.420", + "vtnet0.69" + ] + }, "datasource": "$dataSource", "definition": "SHOW TAG VALUES FROM \"net\" WITH KEY = \"interface\" WHERE \"host\" =~ /^$Host$/ ", "hide": 0, @@ -3599,7 +5033,11 @@ }, { "allValue": null, - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": "$dataSource", "definition": "SHOW TAG VALUES FROM \"cpu\" WITH KEY = \"cpu\" WHERE \"host\" =~ /^$Host$/ and cpu !~ /cpu-total/", "hide": 0, @@ -3622,7 +5060,11 @@ }, { "allValue": null, - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": "$dataSource", "definition": "SHOW TAG VALUES FROM \"interface\" WITH KEY = \"name\" WHERE \"host\" =~ /^$Host$/ ", "hide": 0, @@ -3645,7 +5087,11 @@ }, { "allValue": null, - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": "$dataSource", "definition": "SHOW TAG VALUES FROM \"temperature\" WITH KEY = \"sensor\" WHERE \"host\" =~ /^$Host$/", "hide": 0, @@ -3669,8 +5115,8 @@ ] }, "time": { - "from": "now-24h", - "to": "now" + "from": "2020-03-26T16:39:00.264Z", + "to": "2020-05-29T16:39:00.264Z" }, "timepicker": { "refresh_intervals": [ @@ -3692,5 +5138,5 @@ "variables": { "list": [] }, - "version": 53 -} \ No newline at end of file + "version": 13 +}