-
-
Save jtp10181/a171f6f6c4a3e7052e18a0d6d3a4a91f to your computer and use it in GitHub Desktop.
Adguard Home Dashboard
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
{ | |
"__inputs": [ | |
{ | |
"name": "DS_ADGUARD_V1", | |
"label": "AdGuard v1", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "influxdb", | |
"pluginName": "InfluxDB" | |
} | |
], | |
"__elements": {}, | |
"__requires": [ | |
{ | |
"type": "grafana", | |
"id": "grafana", | |
"name": "Grafana", | |
"version": "9.5.1" | |
}, | |
{ | |
"type": "datasource", | |
"id": "influxdb", | |
"name": "InfluxDB", | |
"version": "1.0.0" | |
}, | |
{ | |
"type": "panel", | |
"id": "piechart", | |
"name": "Pie chart", | |
"version": "" | |
}, | |
{ | |
"type": "panel", | |
"id": "stat", | |
"name": "Stat", | |
"version": "" | |
} | |
], | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"target": { | |
"limit": 100, | |
"matchAny": false, | |
"tags": [], | |
"type": "dashboard" | |
}, | |
"type": "dashboard" | |
} | |
] | |
}, | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"graphTooltip": 0, | |
"id": null, | |
"links": [], | |
"liveNow": false, | |
"panels": [ | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 15, | |
"panels": [], | |
"title": "Status", | |
"type": "row" | |
}, | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"false": { | |
"color": "semi-dark-red", | |
"index": 1, | |
"text": "Disabled" | |
}, | |
"true": { | |
"color": "semi-dark-green", | |
"index": 0, | |
"text": "Enabled" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 4, | |
"x": 0, | |
"y": 1 | |
}, | |
"id": 3, | |
"interval": "10s", | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "/^running$/", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"groupBy": [], | |
"key": "Q-79b48c8c-f736-403c-bca7-8ac2c5164361-0", | |
"limit": "1", | |
"measurement": "status", | |
"orderByTime": "DESC", | |
"policy": "default", | |
"query": "SELECT mean(\"value\"), mean(\"value\") FROM \"measurement\" WHERE (\"host\" = 'DietPi-N42C') AND $timeFilter GROUP BY time($__interval)", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "table", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"running" | |
], | |
"type": "field" | |
} | |
] | |
] | |
} | |
], | |
"title": "AdGuard Running", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"false": { | |
"color": "semi-dark-red", | |
"index": 1, | |
"text": "Disabled" | |
}, | |
"true": { | |
"color": "semi-dark-green", | |
"index": 0, | |
"text": "Enabled" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 4, | |
"x": 4, | |
"y": 1 | |
}, | |
"id": 4, | |
"interval": "10s", | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "/^protection_enabled$/", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"groupBy": [], | |
"key": "Q-79b48c8c-f736-403c-bca7-8ac2c5164361-0", | |
"limit": "1", | |
"measurement": "status", | |
"orderByTime": "DESC", | |
"policy": "default", | |
"query": "SELECT mean(\"value\"), mean(\"value\") FROM \"measurement\" WHERE (\"host\" = 'DietPi-N42C') AND $timeFilter GROUP BY time($__interval)", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "table", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"protection_enabled" | |
], | |
"type": "field" | |
} | |
] | |
] | |
} | |
], | |
"title": "Protection Status", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "yellow", | |
"value": null | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 4, | |
"x": 8, | |
"y": 1 | |
}, | |
"id": 5, | |
"interval": "10s", | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "/^version$/", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"groupBy": [], | |
"key": "Q-79b48c8c-f736-403c-bca7-8ac2c5164361-0", | |
"limit": "1", | |
"measurement": "status", | |
"orderByTime": "DESC", | |
"policy": "default", | |
"query": "SELECT mean(\"value\"), mean(\"value\") FROM \"measurement\" WHERE (\"host\" = 'DietPi-N42C') AND $timeFilter GROUP BY time($__interval)", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "table", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"version" | |
], | |
"type": "field" | |
} | |
] | |
] | |
} | |
], | |
"title": "Version", | |
"type": "stat" | |
}, | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 4 | |
}, | |
"id": 13, | |
"panels": [], | |
"title": "Pie", | |
"type": "row" | |
}, | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
} | |
}, | |
"mappings": [] | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 12, | |
"w": 6, | |
"x": 0, | |
"y": 5 | |
}, | |
"id": 7, | |
"options": { | |
"displayLabels": [], | |
"legend": { | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"values": [ | |
"value", | |
"percent" | |
] | |
}, | |
"pieType": "donut", | |
"reduceOptions": { | |
"calcs": [], | |
"fields": "/^cached \\(count\\)$/", | |
"values": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "asc" | |
} | |
}, | |
"pluginVersion": "9.0.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"groupBy": [], | |
"measurement": "querylog", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT \"upstream\", \"cached\" \nFROM \"querylog\" \nWHERE $timeFilter\n AND (\"upstream\" != '')", | |
"rawQuery": true, | |
"refId": "A", | |
"resultFormat": "table", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"upstream" | |
], | |
"type": "field" | |
} | |
], | |
[ | |
{ | |
"params": [ | |
"cached" | |
], | |
"type": "field" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "host", | |
"operator": "=", | |
"value": "DietPi-N42C" | |
} | |
] | |
} | |
], | |
"title": "Upstream", | |
"transformations": [ | |
{ | |
"id": "groupBy", | |
"options": { | |
"fields": { | |
"cached": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "aggregate" | |
}, | |
"upstream": { | |
"aggregations": [], | |
"operation": "groupby" | |
} | |
} | |
} | |
} | |
], | |
"type": "piechart" | |
}, | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
} | |
}, | |
"mappings": [] | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 12, | |
"w": 6, | |
"x": 6, | |
"y": 5 | |
}, | |
"id": 10, | |
"options": { | |
"displayLabels": [], | |
"legend": { | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"values": [ | |
"value", | |
"percent" | |
] | |
}, | |
"pieType": "donut", | |
"reduceOptions": { | |
"calcs": [], | |
"fields": "/^cached \\(count\\)$/", | |
"values": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "asc" | |
} | |
}, | |
"pluginVersion": "9.0.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"groupBy": [], | |
"measurement": "querylog", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT \"question_type\", \"cached\"\nFROM \"querylog\" \nWHERE $timeFilter\n AND (\"question_type\" != '')", | |
"rawQuery": true, | |
"refId": "A", | |
"resultFormat": "table", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"upstream" | |
], | |
"type": "field" | |
} | |
], | |
[ | |
{ | |
"params": [ | |
"cached" | |
], | |
"type": "field" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "host", | |
"operator": "=", | |
"value": "DietPi-N42C" | |
} | |
] | |
} | |
], | |
"title": "Query Type", | |
"transformations": [ | |
{ | |
"id": "groupBy", | |
"options": { | |
"fields": { | |
"cached": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "aggregate" | |
}, | |
"question_type": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"upstream": { | |
"aggregations": [], | |
"operation": "groupby" | |
} | |
} | |
} | |
} | |
], | |
"type": "piechart" | |
}, | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
} | |
}, | |
"mappings": [] | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 12, | |
"w": 6, | |
"x": 12, | |
"y": 5 | |
}, | |
"id": 18, | |
"options": { | |
"displayLabels": [], | |
"legend": { | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"values": [ | |
"value", | |
"percent" | |
] | |
}, | |
"pieType": "donut", | |
"reduceOptions": { | |
"calcs": [], | |
"fields": "/^cached \\(count\\)$/", | |
"values": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "asc" | |
} | |
}, | |
"pluginVersion": "9.0.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"groupBy": [], | |
"measurement": "querylog", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT \"rules_text\", \"cached\", \"reason\"\nFROM \"querylog\" \nWHERE $timeFilter\n AND (\"rules_text\" != '')\n AND (\"reason\" = 'FilteredBlackList')", | |
"rawQuery": true, | |
"refId": "A", | |
"resultFormat": "table", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"upstream" | |
], | |
"type": "field" | |
} | |
], | |
[ | |
{ | |
"params": [ | |
"cached" | |
], | |
"type": "field" | |
} | |
] | |
], | |
"tags": [ | |
{ | |
"key": "host", | |
"operator": "=", | |
"value": "DietPi-N42C" | |
} | |
] | |
} | |
], | |
"title": "Block Rules", | |
"transformations": [ | |
{ | |
"id": "groupBy", | |
"options": { | |
"fields": { | |
"cached": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "aggregate" | |
}, | |
"reason": { | |
"aggregations": [] | |
}, | |
"rules_filter_list_id": { | |
"aggregations": [] | |
}, | |
"rules_text": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"upstream": { | |
"aggregations": [] | |
} | |
} | |
} | |
} | |
], | |
"type": "piechart" | |
}, | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
} | |
}, | |
"mappings": [] | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "FilteredBlackList" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "red", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "NotFilteredWhiteList" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "green", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "NotFilteredNotFound" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "text", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 12, | |
"w": 4, | |
"x": 0, | |
"y": 17 | |
}, | |
"id": 11, | |
"options": { | |
"displayLabels": [], | |
"legend": { | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"values": [ | |
"value", | |
"percent" | |
] | |
}, | |
"pieType": "donut", | |
"reduceOptions": { | |
"calcs": [ | |
"count" | |
], | |
"fields": "", | |
"values": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "asc" | |
} | |
}, | |
"pluginVersion": "9.0.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"groupBy": [], | |
"measurement": "querylog", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT \"question_type\", \"cached\" \nFROM \"querylog\" \nWHERE $timeFilter\n AND (\"host\" = 'DietPi-N42C') \n AND (\"question_type\" != '')", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "table", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"reason" | |
], | |
"type": "field" | |
} | |
], | |
[ | |
{ | |
"params": [ | |
"reason" | |
], | |
"type": "field" | |
} | |
] | |
] | |
} | |
], | |
"title": "Filtering", | |
"transformations": [ | |
{ | |
"id": "groupBy", | |
"options": { | |
"fields": { | |
"Time": { | |
"aggregations": [] | |
}, | |
"answer_dnssec": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"answer_dnssec_1": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "aggregate" | |
}, | |
"cached": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "aggregate" | |
}, | |
"cached_1": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"reason": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"reason_1": { | |
"aggregations": [ | |
"range", | |
"count" | |
], | |
"operation": "aggregate" | |
} | |
} | |
} | |
} | |
], | |
"type": "piechart" | |
}, | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
} | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"false": { | |
"color": "semi-dark-red", | |
"index": 1, | |
"text": "False" | |
}, | |
"true": { | |
"color": "semi-dark-green", | |
"index": 0, | |
"text": "True" | |
} | |
}, | |
"type": "value" | |
} | |
] | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "False" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "red", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "True" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "green", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 12, | |
"w": 4, | |
"x": 4, | |
"y": 17 | |
}, | |
"id": 16, | |
"options": { | |
"displayLabels": [], | |
"legend": { | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"values": [ | |
"value", | |
"percent" | |
] | |
}, | |
"pieType": "donut", | |
"reduceOptions": { | |
"calcs": [ | |
"count" | |
], | |
"fields": "", | |
"values": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "asc" | |
} | |
}, | |
"pluginVersion": "9.0.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"groupBy": [], | |
"measurement": "querylog", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT \"question_type\", \"cached\" \nFROM \"querylog\" \nWHERE $timeFilter\n AND (\"host\" = 'DietPi-N42C') \n AND (\"question_type\" != '')", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "table", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"cached" | |
], | |
"type": "field" | |
} | |
], | |
[ | |
{ | |
"params": [ | |
"cached" | |
], | |
"type": "field" | |
} | |
] | |
] | |
} | |
], | |
"title": "Cached", | |
"transformations": [ | |
{ | |
"id": "groupBy", | |
"options": { | |
"fields": { | |
"Time": { | |
"aggregations": [] | |
}, | |
"answer_dnssec": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"answer_dnssec_1": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "aggregate" | |
}, | |
"cached": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "groupby" | |
}, | |
"cached_1": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "aggregate" | |
}, | |
"reason": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"reason_1": { | |
"aggregations": [ | |
"range", | |
"count" | |
], | |
"operation": "aggregate" | |
}, | |
"status": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"upstream": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"upstream_1": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "aggregate" | |
} | |
} | |
} | |
}, | |
{ | |
"id": "convertFieldType", | |
"options": { | |
"conversions": [ | |
{ | |
"destinationType": "string", | |
"targetField": "cached" | |
} | |
], | |
"fields": {} | |
} | |
} | |
], | |
"type": "piechart" | |
}, | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
} | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"false": { | |
"color": "semi-dark-red", | |
"index": 1, | |
"text": "False" | |
}, | |
"true": { | |
"color": "semi-dark-green", | |
"index": 0, | |
"text": "True" | |
} | |
}, | |
"type": "value" | |
} | |
] | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "False" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "red", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "True" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "green", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 12, | |
"w": 4, | |
"x": 8, | |
"y": 17 | |
}, | |
"id": 17, | |
"options": { | |
"displayLabels": [], | |
"legend": { | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"values": [ | |
"value", | |
"percent" | |
] | |
}, | |
"pieType": "donut", | |
"reduceOptions": { | |
"calcs": [ | |
"count" | |
], | |
"fields": "", | |
"values": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "asc" | |
} | |
}, | |
"pluginVersion": "9.0.2", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "influxdb", | |
"uid": "${DS_ADGUARD_V1}" | |
}, | |
"groupBy": [], | |
"measurement": "querylog", | |
"orderByTime": "ASC", | |
"policy": "default", | |
"query": "SELECT \"question_type\", \"cached\" \nFROM \"querylog\" \nWHERE $timeFilter\n AND (\"host\" = 'DietPi-N42C') \n AND (\"question_type\" != '')", | |
"rawQuery": false, | |
"refId": "A", | |
"resultFormat": "table", | |
"select": [ | |
[ | |
{ | |
"params": [ | |
"answer_dnssec" | |
], | |
"type": "field" | |
} | |
], | |
[ | |
{ | |
"params": [ | |
"answer_dnssec" | |
], | |
"type": "field" | |
} | |
] | |
] | |
} | |
], | |
"title": "DNSSEC", | |
"transformations": [ | |
{ | |
"id": "groupBy", | |
"options": { | |
"fields": { | |
"Time": { | |
"aggregations": [] | |
}, | |
"answer_dnssec": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"answer_dnssec_1": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "aggregate" | |
}, | |
"cached": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "groupby" | |
}, | |
"cached_1": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "aggregate" | |
}, | |
"reason": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"reason_1": { | |
"aggregations": [ | |
"range", | |
"count" | |
], | |
"operation": "aggregate" | |
}, | |
"status": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"upstream": { | |
"aggregations": [], | |
"operation": "groupby" | |
}, | |
"upstream_1": { | |
"aggregations": [ | |
"count" | |
], | |
"operation": "aggregate" | |
} | |
} | |
} | |
}, | |
{ | |
"id": "convertFieldType", | |
"options": { | |
"conversions": [ | |
{ | |
"destinationType": "string", | |
"targetField": "answer_dnssec" | |
} | |
], | |
"fields": {} | |
} | |
} | |
], | |
"type": "piechart" | |
} | |
], | |
"refresh": "1m", | |
"schemaVersion": 38, | |
"style": "dark", | |
"tags": [ | |
"adguard" | |
], | |
"templating": { | |
"list": [] | |
}, | |
"time": { | |
"from": "now-6h", | |
"to": "now" | |
}, | |
"timepicker": {}, | |
"timezone": "", | |
"title": "AdGuard Home", | |
"uid": "a4OUYt6nk", | |
"version": 36, | |
"weekStart": "" | |
} |
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
# Read formatted metrics from one or more HTTP endpoints | |
[[inputs.http]] | |
## One or more URLs from which to read formatted metrics | |
## Adguard Home: http://server:port/control/status | |
urls = ["http://localhost:8083/control/status"] | |
## HTTP method | |
method = "GET" | |
## Optional HTTP Basic Auth Credentials | |
## Adguard Home Login if enabled | |
username = "" | |
password = "" | |
## Amount of time allowed to complete the HTTP request | |
# timeout = "5s" | |
## List of success status codes | |
# success_status_codes = [200] | |
## Data format to consume. | |
data_format = "json_v2" | |
## AdGuard Config | |
tagexclude = ["url"] | |
[inputs.http.tags] | |
bucket = "adguard" | |
[[inputs.http.json_v2]] | |
measurement_name = "status" | |
[[inputs.http.json_v2.field]] | |
path = "dns_addresses.#" | |
rename = "dns_addresses" | |
[[inputs.http.json_v2.object]] | |
path = "@this" | |
disable_prepend_keys = false | |
#tags = ["name", "id"] | |
included_keys = ["protection_enabled","dhcp_available","running","version"] | |
excluded_keys = ["dns_addresses"] | |
[[inputs.http]] | |
## One or more URLs from which to read formatted metrics | |
## Adguard Home: http://server:port/control/querylog?response_status=all&limit=400 | |
urls = ["http://localhost:8083/control/querylog?response_status=all&limit=400"] | |
## HTTP method | |
method = "GET" | |
## Optional HTTP Basic Auth Credentials | |
## Adguard Home Login if enabled | |
username = "" | |
password = "" | |
## Data format to consume. | |
data_format = "json_v2" | |
## AdGuard Config | |
tagexclude = ["url"] | |
[inputs.http.tags] | |
bucket = "adguard" | |
[[inputs.http.json_v2]] | |
measurement_name = "querylog" | |
[[inputs.http.json_v2.object]] | |
path = "data" | |
disable_prepend_keys = false | |
timestamp_key = "time" | |
timestamp_format = "unix" | |
tags = ["client","client_id","client_info_name"] | |
included_keys = ["cached","upstream","answer_dnssec","ecs","elapsedMs","question_class","question_name", | |
"question_unicode_name","question_type","rules_filter_list_id","rules_text","reason","service_name","status"] | |
# excluded_keys = ["answer","client_proto","client_info_disallowed","client_info_disallowed_rule"] |
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
[[outputs.influxdb_v2]] | |
## The URLs of the InfluxDB cluster nodes. | |
## | |
## Multiple URLs can be specified for a single cluster, only ONE of the | |
## urls will be written to each interval. | |
## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"] | |
urls = ["http://localhost:8086"] | |
## API token for authentication. | |
token = "" | |
## Organization is the name of the organization you wish to write to; must exist. | |
organization = "home" | |
## Destination bucket to write into. | |
bucket = "telegraf" | |
## The value of this tag will be used to determine the bucket. If this | |
## tag is not set the 'bucket' option is used as the default. | |
bucket_tag = "bucket" | |
## If true, the bucket tag will not be added to the metric. | |
exclude_bucket_tag = true | |
## Timeout for HTTP messages. | |
# timeout = "5s" | |
## Additional HTTP headers | |
# http_headers = {"X-Special-Header" = "Special-Value"} | |
## HTTP Proxy override, if unset values the standard proxy environment | |
## variables are consulted to determine which proxy, if any, should be used. | |
# http_proxy = "http://corporate.proxy:3128" | |
## HTTP User-Agent | |
# user_agent = "telegraf" | |
## Content-Encoding for write request body, can be set to "gzip" to | |
## compress body or "identity" to apply no encoding. | |
# content_encoding = "gzip" | |
## Enable or disable uint support for writing uints influxdb 2.0. | |
# influx_uint_support = false | |
## Optional TLS Config for use on HTTP connections. | |
# tls_ca = "/etc/telegraf/ca.pem" | |
# tls_cert = "/etc/telegraf/cert.pem" | |
# tls_key = "/etc/telegraf/key.pem" | |
## Use TLS but skip chain & host verification | |
# insecure_skip_verify = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment