Created
January 14, 2021 14:33
-
-
Save abstractvector/7de922c17bf3948792f42f71439959e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"type": "dashboard" | |
} | |
] | |
}, | |
"editable": true, | |
"gnetId": null, | |
"graphTooltip": 0, | |
"id": 23, | |
"links": [], | |
"panels": [ | |
{ | |
"aliasColors": {}, | |
"breakPoint": "50%", | |
"cacheTimeout": null, | |
"combine": { | |
"label": "Others", | |
"threshold": 0 | |
}, | |
"datasource": "AdGuard", | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {} | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Value" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Cached" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "192.168.0.1:53" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "OPNsense" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "tls://1.1.1.1:853" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Cloudflare (DoT)" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "tls://dns.nextdns.io:853" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "NextDNS (DoT)" | |
} | |
] | |
} | |
] | |
}, | |
"fontSize": "80%", | |
"format": "short", | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 8, | |
"interval": null, | |
"legend": { | |
"show": true, | |
"sort": "total", | |
"sortDesc": true, | |
"values": true | |
}, | |
"legendType": "Right side", | |
"links": [], | |
"nullPointMode": "connected", | |
"pieType": "pie", | |
"pluginVersion": "7.3.5", | |
"strokeWidth": 1, | |
"targets": [ | |
{ | |
"alias": "$tag_Upstream", | |
"groupBy": [ | |
{ | |
"params": ["$__interval"], | |
"type": "time" | |
}, | |
{ | |
"params": ["Upstream"], | |
"type": "tag" | |
} | |
], | |
"measurement": "tail", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT count(\"Elapsed\") FROM \"tail\" WHERE (\"Upstream\" = 'select tag value') AND $timeFilter GROUP BY time($__interval), \"Upstream\"", | |
"queryType": "randomWalk", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": ["Elapsed"], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "count" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "Upstream", | |
"operator": "=~", | |
"value": "/.+/" | |
} | |
] | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "DNS Upstream", | |
"type": "grafana-piechart-panel", | |
"valueName": "total" | |
}, | |
{ | |
"aliasColors": {}, | |
"breakPoint": "50%", | |
"cacheTimeout": null, | |
"combine": { | |
"label": "Others", | |
"threshold": 0 | |
}, | |
"datasource": "AdGuard", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"fontSize": "80%", | |
"format": "short", | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 8, | |
"y": 0 | |
}, | |
"id": 2, | |
"interval": null, | |
"legend": { | |
"percentage": true, | |
"show": true, | |
"sort": "total", | |
"sortDesc": true, | |
"values": true | |
}, | |
"legendType": "Right side", | |
"links": [], | |
"nullPointMode": "connected", | |
"pieType": "pie", | |
"pluginVersion": "7.3.5", | |
"strokeWidth": 1, | |
"targets": [ | |
{ | |
"alias": "$tag_IP", | |
"groupBy": [ | |
{ | |
"params": ["IP"], | |
"type": "tag" | |
} | |
], | |
"measurement": "tail", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT count(*) FROM \"tail\" WHERE $timeFilter GROUP BY \"IP\"", | |
"queryType": "randomWalk", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": ["Elapsed"], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "count" | |
} | |
] | |
], | |
"tags": [] | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "DNS Queries by Device", | |
"type": "grafana-piechart-panel", | |
"valueName": "total" | |
}, | |
{ | |
"aliasColors": {}, | |
"breakPoint": "50%", | |
"cacheTimeout": null, | |
"combine": { | |
"label": "Others", | |
"threshold": "" | |
}, | |
"datasource": "AdGuard", | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"fontSize": "80%", | |
"format": "short", | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 16, | |
"y": 0 | |
}, | |
"id": 5, | |
"interval": null, | |
"legend": { | |
"percentage": true, | |
"show": true, | |
"sort": "total", | |
"sortDesc": true, | |
"values": true | |
}, | |
"legendType": "Right side", | |
"links": [], | |
"nullPointMode": "connected", | |
"pieType": "pie", | |
"pluginVersion": "7.3.5", | |
"strokeWidth": "5", | |
"targets": [ | |
{ | |
"alias": "$tag_QT", | |
"groupBy": [ | |
{ | |
"params": ["QT"], | |
"type": "tag" | |
} | |
], | |
"measurement": "tail", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT count(*) FROM \"tail\" WHERE $timeFilter GROUP BY \"IP\"", | |
"queryType": "randomWalk", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": ["Elapsed"], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "count" | |
} | |
] | |
], | |
"tags": [] | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "DNS Queries by Type", | |
"type": "grafana-piechart-panel", | |
"valueName": "total" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "AdGuard", | |
"decimals": 0, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {} | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Value" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Allowed" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "9" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Rewrite" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "3" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Blacklisted" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "1" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Whitelist" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "8" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Blocked Service" | |
} | |
] | |
} | |
] | |
}, | |
"fill": 10, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 0, | |
"y": 6 | |
}, | |
"hiddenSeries": false, | |
"id": 10, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 0, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.3.6", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": true, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"alias": "$tag_Result_Reason", | |
"groupBy": [ | |
{ | |
"params": ["1m"], | |
"type": "time" | |
}, | |
{ | |
"params": ["Result_Reason"], | |
"type": "tag" | |
} | |
], | |
"measurement": "tail", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT count(\"Elapsed\") FROM \"tail\" WHERE (\"Result_Reason\" > 0) AND $timeFilter GROUP BY time(1m), \"Result_Reason\"", | |
"queryType": "randomWalk", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": ["Elapsed"], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "count" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "Result_Reason", | |
"operator": "=~", | |
"value": "/.+/" | |
} | |
] | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Response Type", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"decimals": 0, | |
"format": "short", | |
"label": "", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"decimals": 0, | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"cacheTimeout": null, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "AdGuard", | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"fill": 10, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 8, | |
"y": 6 | |
}, | |
"hiddenSeries": false, | |
"id": 11, | |
"interval": null, | |
"legend": { | |
"alignAsTable": false, | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"rightSide": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 0, | |
"links": [], | |
"nullPointMode": "connected", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.3.6", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": true, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"alias": "$tag_IP_24", | |
"groupBy": [ | |
{ | |
"params": ["1m"], | |
"type": "time" | |
}, | |
{ | |
"params": ["IP_24"], | |
"type": "tag" | |
} | |
], | |
"measurement": "tail", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT sum(count) FROM (SELECT count(\"Elapsed\") FROM \"tail\" WHERE (\"IP_24\" =~ /.+/) AND $timeFilter GROUP BY time(1m), \"IP_24\") GROUP BY IP_24, time($__interval)", | |
"queryType": "randomWalk", | |
"rawQuery": true, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": ["Elapsed"], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "count" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "IP_24", | |
"operator": "=~", | |
"value": "/.+/" | |
} | |
] | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "DNS Queries by /24", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"label": "", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "AdGuard", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {} | |
}, | |
"overrides": [] | |
}, | |
"fill": 10, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 16, | |
"y": 6 | |
}, | |
"hiddenSeries": false, | |
"id": 7, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 0, | |
"nullPointMode": "connected", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.3.6", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": true, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"alias": "$tag_QT", | |
"groupBy": [ | |
{ | |
"params": ["1m"], | |
"type": "time" | |
}, | |
{ | |
"params": ["QT"], | |
"type": "tag" | |
} | |
], | |
"measurement": "tail", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT sum(count) FROM (SELECT count(\"Elapsed\") FROM \"tail\" WHERE (\"IP_24\" =~ /.+/) AND $timeFilter GROUP BY time(1m), \"IP_24\") GROUP BY time($__interval), QT", | |
"queryType": "randomWalk", | |
"rawQuery": true, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": ["Elapsed"], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "count" | |
} | |
] | |
], | |
"tags": [] | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "DNS Query Type", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"label": "", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"breakPoint": "50%", | |
"cacheTimeout": null, | |
"combine": { | |
"label": "Others", | |
"threshold": "0.01" | |
}, | |
"datasource": "AdGuard", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"fontSize": "80%", | |
"format": "short", | |
"gridPos": { | |
"h": 8, | |
"w": 9, | |
"x": 0, | |
"y": 12 | |
}, | |
"id": 3, | |
"interval": null, | |
"legend": { | |
"percentage": true, | |
"show": true, | |
"sort": "total", | |
"sortDesc": true, | |
"values": true | |
}, | |
"legendType": "Right side", | |
"links": [], | |
"nullPointMode": "connected", | |
"pieType": "pie", | |
"pluginVersion": "7.3.5", | |
"strokeWidth": 1, | |
"targets": [ | |
{ | |
"alias": "$tag_QH", | |
"groupBy": [ | |
{ | |
"params": ["QH"], | |
"type": "tag" | |
} | |
], | |
"measurement": "tail", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT count(*) FROM \"tail\" WHERE $timeFilter GROUP BY \"IP\"", | |
"queryType": "randomWalk", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": ["Elapsed"], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "count" | |
} | |
] | |
], | |
"tags": [] | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "DNS Queries by Host", | |
"type": "grafana-piechart-panel", | |
"valueName": "total" | |
}, | |
{ | |
"aliasColors": {}, | |
"breakPoint": "50%", | |
"cacheTimeout": null, | |
"combine": { | |
"label": "Others", | |
"threshold": "0.01" | |
}, | |
"datasource": "AdGuard", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"fontSize": "80%", | |
"format": "short", | |
"gridPos": { | |
"h": 8, | |
"w": 9, | |
"x": 9, | |
"y": 12 | |
}, | |
"id": 13, | |
"interval": null, | |
"legend": { | |
"percentage": true, | |
"show": true, | |
"sort": "total", | |
"sortDesc": true, | |
"values": true | |
}, | |
"legendType": "Right side", | |
"links": [], | |
"nullPointMode": "connected", | |
"pieType": "pie", | |
"pluginVersion": "7.3.5", | |
"strokeWidth": 1, | |
"targets": [ | |
{ | |
"alias": "$tag_TLD", | |
"groupBy": [ | |
{ | |
"params": ["TLD"], | |
"type": "tag" | |
} | |
], | |
"measurement": "tail", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT count(*) FROM \"tail\" WHERE $timeFilter GROUP BY \"IP\"", | |
"queryType": "randomWalk", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": ["Elapsed"], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "count" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "TLD", | |
"operator": "=~", | |
"value": "/.+/" | |
} | |
] | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "DNS Queries by TLD", | |
"type": "grafana-piechart-panel", | |
"valueName": "total" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "AdGuard", | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "continuous-GrYlRd" | |
}, | |
"custom": {}, | |
"decimals": 0, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
}, | |
"unit": "ns" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 6, | |
"x": 18, | |
"y": 12 | |
}, | |
"id": 12, | |
"interval": null, | |
"links": [], | |
"options": { | |
"displayMode": "basic", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": ["mean"], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true | |
}, | |
"pluginVersion": "7.3.6", | |
"targets": [ | |
{ | |
"alias": "$tag_QT", | |
"groupBy": [ | |
{ | |
"params": ["QT"], | |
"type": "tag" | |
} | |
], | |
"measurement": "tail", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT count(*) FROM \"tail\" WHERE $timeFilter GROUP BY \"IP\"", | |
"queryType": "randomWalk", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": ["Elapsed"], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "mean" | |
} | |
] | |
], | |
"tags": [] | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Response Time by Type", | |
"type": "bargauge" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "AdGuard", | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "continuous-GrYlRd" | |
}, | |
"custom": {}, | |
"decimals": 0, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
}, | |
"unit": "ns" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Value" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Cached" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "192.168.0.1:53" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "OPNsense" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "tls://1.1.1.1:853" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Cloudflare (DoT)" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "tls://dns.nextdns.io:853" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "NextDNS (DoT)" | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 6, | |
"x": 18, | |
"y": 16 | |
}, | |
"id": 9, | |
"interval": null, | |
"links": [], | |
"options": { | |
"displayMode": "basic", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": ["mean"], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true | |
}, | |
"pluginVersion": "7.3.6", | |
"targets": [ | |
{ | |
"alias": "$tag_Upstream", | |
"groupBy": [ | |
{ | |
"params": ["Upstream"], | |
"type": "tag" | |
} | |
], | |
"measurement": "tail", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT count(*) FROM \"tail\" WHERE $timeFilter GROUP BY \"IP\"", | |
"queryType": "randomWalk", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": ["Elapsed"], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "mean" | |
} | |
] | |
], | |
"tags": [] | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Response Time by Upstream", | |
"type": "bargauge" | |
}, | |
{ | |
"aliasColors": {}, | |
"breakPoint": "50%", | |
"cacheTimeout": null, | |
"combine": { | |
"label": "Others", | |
"threshold": 0 | |
}, | |
"datasource": "AdGuard", | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {} | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Value" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Allowed" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "9" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Rewrite" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "3" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Blacklisted" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "1" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Not Found" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "8" | |
}, | |
"properties": [ | |
{ | |
"id": "displayName", | |
"value": "Blocked Service" | |
} | |
] | |
} | |
] | |
}, | |
"fontSize": "80%", | |
"format": "short", | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 0, | |
"y": 20 | |
}, | |
"id": 14, | |
"interval": null, | |
"legend": { | |
"show": true, | |
"sort": "total", | |
"sortDesc": true, | |
"values": true | |
}, | |
"legendType": "Right side", | |
"links": [], | |
"nullPointMode": "connected", | |
"pieType": "pie", | |
"pluginVersion": "7.3.5", | |
"strokeWidth": 1, | |
"targets": [ | |
{ | |
"alias": "$tag_IP", | |
"groupBy": [ | |
{ | |
"params": ["1m"], | |
"type": "time" | |
}, | |
{ | |
"params": ["IP"], | |
"type": "tag" | |
} | |
], | |
"measurement": "tail", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT count(\"Elapsed\") FROM \"tail\" WHERE (\"Result_Reason\" > 0) AND $timeFilter GROUP BY time(1m), \"Result_Reason\"", | |
"queryType": "randomWalk", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "time_series", | |
"select": [ | |
[ | |
{ | |
"params": ["Elapsed"], | |
"type": "field" | |
}, | |
{ | |
"params": [], | |
"type": "count" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "Result_Reason", | |
"operator": "!=", | |
"value": "9" | |
}, | |
{ | |
"condition": "AND", | |
"key": "Result_Reason", | |
"operator": "=~", | |
"value": "/.+/" | |
} | |
] | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Blocked Queries by Host", | |
"type": "grafana-piechart-panel", | |
"valueName": "total" | |
} | |
], | |
"refresh": "1m", | |
"schemaVersion": 26, | |
"style": "dark", | |
"tags": [], | |
"templating": { | |
"list": [] | |
}, | |
"time": { | |
"from": "now-7d", | |
"to": "now" | |
}, | |
"timepicker": {}, | |
"timezone": "", | |
"title": "DNS", | |
"uid": "eCIW9mbGk", | |
"version": 40 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment