Skip to content

Instantly share code, notes, and snippets.

@diffficult
Created May 11, 2019 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diffficult/f191320347f03a0ea89f1a7e6d5a369c to your computer and use it in GitHub Desktop.
Save diffficult/f191320347f03a0ea89f1a7e6d5a369c to your computer and use it in GitHub Desktop.
Pi-hole Dashboard on Grafana
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
},
{
"name": "DS_PIHOLE",
"label": "PiHole",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
],
"__requires": [
{
"type": "panel",
"id": "flant-statusmap-panel",
"name": "Statusmap",
"version": "0.1.1"
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "6.1.6"
},
{
"type": "panel",
"id": "grafana-piechart-panel",
"name": "Pie Chart",
"version": "1.3.6"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": ""
},
{
"type": "datasource",
"id": "influxdb",
"name": "InfluxDB",
"version": "1.0.0"
},
{
"type": "panel",
"id": "natel-discrete-panel",
"name": "Discrete",
"version": "0.0.9"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "singlestat",
"name": "Singlestat",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "",
"editable": true,
"gnetId": 10176,
"graphTooltip": 0,
"id": null,
"iteration": 1557579817443,
"links": [],
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 60,
"panels": [],
"title": "🍓pihole1.dns.lan",
"type": "row"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorPostfix": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"decimals": null,
"format": "locale",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 0,
"y": 1
},
"id": 80,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "pihole_dns_queries_today{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Total Queries",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"decimals": 2,
"format": "locale",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 2,
"y": 1
},
"id": 82,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"pluginVersion": "6.1.6",
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "pihole_ads_blocked_today{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Queries Blocked",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"format": "percent",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 4,
"y": 1
},
"id": 92,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"pluginVersion": "6.1.6",
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "pihole_ads_percentage_today{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Percent Blocked",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"format": "locale",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 6,
"y": 1
},
"id": 107,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "pihole_domains_being_blocked{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Domains on Blocklist",
"transparent": true,
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"backgroundColor": "rgba(128,128,128,0.1)",
"cacheTimeout": null,
"colorMaps": [
{
"color": "rgb(0, 0, 0)",
"text": "No Data"
},
{
"color": "rgb(27, 255, 0)",
"text": "Running"
},
{
"color": "#C4162A",
"text": "Stopped"
}
],
"crosshairColor": "#8F070C",
"datasource": "${DS_PROMETHEUS}",
"display": "timeline",
"expandFromQueryS": 0,
"extendLastValue": true,
"gridPos": {
"h": 3,
"w": 8,
"x": 0,
"y": 3
},
"highlightOnMouseover": false,
"id": 84,
"interval": "1m",
"legendSortBy": "-ms",
"lineColor": "rgba(0,0,0,0.1)",
"links": [],
"metricNameColor": "#000000",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"rowHeight": 25,
"showDistinctCount": false,
"showLegend": false,
"showLegendCounts": false,
"showLegendNames": false,
"showLegendPercent": false,
"showLegendTime": false,
"showLegendValues": false,
"showTimeAxis": true,
"showTransitionCount": false,
"targets": [
{
"expr": "pihole_status{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"textSize": 1,
"textSizeTime": 14,
"timeFrom": null,
"timeOptions": [
{
"name": "Years",
"value": "years"
},
{
"name": "Months",
"value": "months"
},
{
"name": "Weeks",
"value": "weeks"
},
{
"name": "Days",
"value": "days"
},
{
"name": "Hours",
"value": "hours"
},
{
"name": "Minutes",
"value": "minutes"
},
{
"name": "Seconds",
"value": "seconds"
},
{
"name": "Milliseconds",
"value": "milliseconds"
}
],
"timePrecision": {
"name": "Minutes",
"value": "minutes"
},
"timeShift": null,
"timeTextColor": "#d8d9da",
"title": "PiHole Status",
"transparent": true,
"type": "natel-discrete-panel",
"units": "none",
"useTimePrecision": false,
"valueMaps": [
{
"op": "=",
"text": "Running",
"value": "1"
},
{
"op": "=",
"text": "Stopped",
"value": "0"
},
{
"op": "=",
"text": "No Data",
"value": "null"
}
],
"valueTextColor": "#000000",
"writeAllValues": false,
"writeLastValue": false,
"writeMetricNames": false
},
{
"cards": {
"cardHSpacing": 5,
"cardMinWidth": 5,
"cardRound": null,
"cardVSpacing": 2
},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateGnYlRd",
"defaultColor": "#757575",
"exponent": 0.5,
"mode": "discrete",
"thresholds": [
{
"color": "rgb(28, 255, 0)",
"tooltip": "",
"value": "2"
}
]
},
"data": {
"decimals": null,
"unitFormat": "short"
},
"datasource": "${DS_PROMETHEUS}",
"gridPos": {
"h": 4,
"w": 8,
"x": 0,
"y": 6
},
"highlightCards": true,
"id": 117,
"interval": "",
"legend": {
"show": false
},
"links": [],
"nullPointMode": "as empty",
"targets": [
{
"aggregation": "Last",
"decimals": 2,
"displayAliasType": "Warning / Critical",
"displayType": "Regular",
"displayValueWithAlias": "Never",
"expr": "uptimerobot_monitor_status{instance=\"uptimerobot:9429\",job=\"uptimerobot\",name=\"DNS-over-HTTPS\",type=\"4\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{name}}",
"refId": "A",
"units": "none",
"valueHandler": "Number Threshold"
},
{
"aggregation": "Last",
"decimals": 2,
"displayAliasType": "Warning / Critical",
"displayType": "Regular",
"displayValueWithAlias": "Never",
"expr": "uptimerobot_monitor_status{instance=\"uptimerobot:9429\",job=\"uptimerobot\",name=\"DNS-over-TLS\",type=\"4\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{name}}",
"refId": "B",
"units": "none",
"valueHandler": "Number Threshold"
},
{
"aggregation": "Last",
"decimals": 2,
"displayAliasType": "Warning / Critical",
"displayType": "Regular",
"displayValueWithAlias": "Never",
"expr": "uptimerobot_monitor_status{instance=\"uptimerobot:9429\",job=\"uptimerobot\",name=\"DNSCrypt\",type=\"4\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{name}}",
"refId": "C",
"units": "none",
"valueHandler": "Number Threshold"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Upstream Status",
"tooltip": {
"show": false
},
"transparent": true,
"type": "flant-statusmap-panel",
"useMax": false,
"xAxis": {
"labelFormat": "%a %m/%d",
"minBucketWidthToShowWeekends": 4,
"show": true,
"showCrosshair": true,
"showWeekends": true
},
"yAxis": {
"show": true,
"showCrosshair": false
},
"yAxisSort": "metrics"
},
{
"aliasColors": {
"Clients": "dark-blue",
"Count": "dark-purple",
"pihole_unique_clients{hostname=\"127.0.0.1\",instance=\"localhost:9311\",job=\"pihole\"}": "rgb(255, 255, 255)",
"pihole_unique_domains{hostname=\"127.0.0.1\",instance=\"localhost:9311\",job=\"pihole\"}": "super-light-yellow"
},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fill": 1,
"gridPos": {
"h": 4,
"w": 8,
"x": 0,
"y": 10
},
"id": 76,
"interval": "1m",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "pihole_unique_clients{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Clients",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Unique clients",
"tooltip": {
"shared": false,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 0,
"format": "none",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
"alexa-echodot|10.0.0.243": "rgb(255, 248, 0)",
"ap2|10.0.0.5": "#8F3BB8",
"ipad-eleanor|10.0.0.30": "rgb(255, 0, 0)",
"ipad-ewan|10.0.0.21": "rgb(0, 255, 29)",
"localhost|127.0.0.1": "rgb(255, 255, 255)",
"mii-box|10.0.0.110": "rgb(255, 141, 0)",
"workstation|10.0.0.20": "rgb(69, 0, 255)"
},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": 0
},
"datasource": "${DS_PROMETHEUS}",
"fontSize": "80%",
"format": "locale",
"gridPos": {
"h": 8,
"w": 8,
"x": 0,
"y": 14
},
"id": 62,
"interval": null,
"legend": {
"header": "Requests",
"show": true,
"sideWidth": 325,
"values": true
},
"legendType": "Right side",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "donut",
"strokeWidth": "3",
"targets": [
{
"expr": "sort_desc(pihole_top_sources{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"})",
"format": "time_series",
"instant": true,
"intervalFactor": 1,
"legendFormat": "{{source}}",
"refId": "A"
}
],
"timeFrom": "24h",
"timeShift": null,
"title": "Top Clients",
"transparent": true,
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"aliasColors": {},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": 0
},
"datasource": "${DS_PROMETHEUS}",
"fontSize": "80%",
"format": "short",
"gridPos": {
"h": 9,
"w": 4,
"x": 0,
"y": 22
},
"id": 70,
"interval": null,
"legend": {
"header": "Hits",
"percentage": true,
"show": true,
"sideWidth": 325,
"sort": "current",
"sortDesc": true,
"values": true
},
"legendType": "Right side",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "donut",
"strokeWidth": "3",
"targets": [
{
"expr": "pihole_top_queries{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"instant": true,
"intervalFactor": 1,
"legendFormat": "{{domain}}",
"refId": "A"
}
],
"timeFrom": "24h",
"timeShift": null,
"title": "Top queries by domain",
"transparent": true,
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"aliasColors": {},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": ""
},
"datasource": "${DS_PROMETHEUS}",
"fontSize": "80%",
"format": "short",
"gridPos": {
"h": 9,
"w": 4,
"x": 4,
"y": 22
},
"id": 72,
"interval": null,
"legend": {
"header": "Hits",
"percentage": true,
"show": true,
"sideWidth": 325,
"sort": "current",
"sortDesc": true,
"values": true
},
"legendType": "Right side",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "donut",
"strokeWidth": "3",
"targets": [
{
"expr": "pihole_top_ads{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{domain}}",
"refId": "A"
}
],
"timeFrom": "24h",
"timeShift": null,
"title": "Top ads by domain",
"transparent": true,
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"aliasColors": {
"A (IPv4)": "#3274D9",
"AAAA (IPv6)": "#37872D",
"ANY": "#B877D9",
"PTR": "#E0B400",
"SRV": "#FADE2A"
},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": "0.02"
},
"datasource": "${DS_PROMETHEUS}",
"fontSize": "80%",
"format": "percent",
"gridPos": {
"h": 6,
"w": 4,
"x": 0,
"y": 31
},
"id": 108,
"interval": null,
"legend": {
"percentage": true,
"percentageDecimals": 0,
"show": true,
"sideWidth": 325,
"sort": "current",
"sortDesc": true,
"values": false
},
"legendType": "Right side",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "donut",
"strokeWidth": "3",
"targets": [
{
"expr": "pihole_querytypes{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{type}}",
"refId": "A"
}
],
"timeFrom": "24h",
"timeShift": null,
"title": "Query Types",
"transparent": true,
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"aliasColors": {
"10.0.0.1": "#FA6400",
"10.9.0.1": "rgb(17, 255, 0)",
"blocklist": "rgb(255, 18, 0)",
"cache": "#E0B400"
},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": 0
},
"datasource": "${DS_PROMETHEUS}",
"fontSize": "80%",
"format": "short",
"gridPos": {
"h": 6,
"w": 4,
"x": 4,
"y": 31
},
"id": 88,
"interval": null,
"legend": {
"percentage": true,
"show": true,
"sideWidth": 325,
"values": false
},
"legendType": "Right side",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "donut",
"strokeWidth": "2",
"targets": [
{
"expr": "pihole_forward_destinations{destination=\"10.0.0.1\",hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{destination}}",
"refId": "A"
},
{
"expr": "pihole_forward_destinations{destination=\"10.9.0.1\",hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{destination}}",
"refId": "B"
},
{
"expr": "pihole_forward_destinations{destination=\"blocklist|blocklist\",hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "blocklist",
"refId": "C"
},
{
"expr": "pihole_forward_destinations{destination=\"cache|cache\",hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "cache",
"refId": "D"
}
],
"timeFrom": "24h",
"timeShift": null,
"title": "Forward Destinations",
"transparent": true,
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"aliasColors": {
"A (IPv4)": "#56A64B",
"CNAME": "rgb(33, 255, 0)",
"IP": "rgb(0, 7, 255)",
"NODATA": "#C4162A",
"NXDOMAIN": "#8F3BB8"
},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "",
"threshold": 0
},
"datasource": "${DS_PROMETHEUS}",
"fontSize": "80%",
"format": "locale",
"gridPos": {
"h": 6,
"w": 4,
"x": 0,
"y": 37
},
"id": 101,
"interval": null,
"legend": {
"header": "Responses",
"percentage": false,
"show": true,
"sideWidth": 325,
"sort": null,
"sortDesc": null,
"values": true
},
"legendType": "Right side",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "donut",
"pluginVersion": "6.1.4",
"strokeWidth": "2",
"targets": [
{
"expr": "pihole_reply{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\",type=\"cname\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "CNAME",
"refId": "A"
},
{
"expr": "pihole_reply{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\",type=\"ip\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "IP",
"refId": "B"
},
{
"expr": "pihole_reply{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\",type=\"no_data\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "NODATA",
"refId": "C"
},
{
"expr": "pihole_reply{hostname=\"10.0.0.2\",instance=\"10.9.0.2:19992\",job=\"pihole\",type=\"nx_domain\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "NXDOMAIN",
"refId": "D"
}
],
"timeFrom": "24h",
"timeShift": null,
"title": "Reply Types",
"transparent": true,
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"aliasColors": {
"avail": "rgb(0, 255, 13)",
"reserved for root": "rgb(247, 255, 0)",
"used": "rgb(255, 0, 0)"
},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": 0
},
"datasource": "${DS_PROMETHEUS}",
"fontSize": "80%",
"format": "gbytes",
"gridPos": {
"h": 6,
"w": 4,
"x": 4,
"y": 37
},
"id": 105,
"interval": null,
"legend": {
"header": " ",
"percentage": true,
"percentageDecimals": null,
"show": true,
"sideWidth": 325,
"values": true
},
"legendType": "Right side",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pieType": "donut",
"strokeWidth": "4",
"targets": [
{
"expr": "netdata_disk_space_GiB_average{chart=\"disk_space._\",family=\"/\",instance=\"10.9.0.2:19990\",job=\"netdata\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{dimension}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Disk Usage",
"transparent": true,
"type": "grafana-piechart-panel",
"valueName": "current"
},
{
"aliasColors": {
"Blocked": "rgb(255, 0, 29)",
"Cached": "rgb(255, 206, 0)",
"Forwarded": "rgb(29, 255, 0)"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PIHOLE}",
"fill": 0,
"gridPos": {
"h": 5,
"w": 8,
"x": 0,
"y": 43
},
"id": 115,
"interval": "",
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"alias": "Blocked",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
}
],
"hide": false,
"measurement": "pihole",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT derivative(mean(\"ads_blocked_today\"), 10s) AS \"Queries Blocked\" FROM \"pihole\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($interval) fill(null)",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"ads_blocked_today"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"30s"
],
"type": "non_negative_derivative"
}
]
],
"tags": [
{
"key": "host",
"operator": "=",
"value": "pihole_1"
}
]
},
{
"alias": "Cached",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
}
],
"hide": false,
"measurement": "pihole",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT derivative(mean(\"ads_blocked_today\"), 10s) AS \"Queries Blocked\" FROM \"pihole\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($interval) fill(null)",
"rawQuery": false,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"queries_cached"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"30s"
],
"type": "non_negative_derivative"
}
]
],
"tags": [
{
"key": "host",
"operator": "=",
"value": "pihole_1"
}
]
},
{
"alias": "Forwarded",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
}
],
"hide": false,
"measurement": "pihole",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT derivative(mean(\"ads_blocked_today\"), 10s) AS \"Queries Blocked\" FROM \"pihole\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($interval) fill(null)",
"rawQuery": false,
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"queries_forwarded"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"30s"
],
"type": "non_negative_derivative"
}
]
],
"tags": [
{
"key": "host",
"operator": "=",
"value": "pihole_1"
}
]
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Realtime Queries",
"tooltip": {
"shared": true,
"sort": 1,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 0,
"format": "none",
"label": "",
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
"Blocked": "dark-red",
"CNAME": "rgb(63, 255, 0)",
"Cached": "dark-yellow",
"Forwarded": "dark-green",
"IP": "rgb(255, 184, 0)",
"NODATA": "rgb(0, 220, 255)",
"NXDOMAIN": "rgb(255, 103, 0)"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PIHOLE}",
"fill": 0,
"gridPos": {
"h": 5,
"w": 8,
"x": 0,
"y": 48
},
"id": 111,
"interval": "",
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"alias": "CNAME",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
}
],
"hide": false,
"measurement": "pihole",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT derivative(mean(\"ads_blocked_today\"), 10s) AS \"Queries Blocked\" FROM \"pihole\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($interval) fill(null)",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"reply_CNAME"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"30s"
],
"type": "non_negative_derivative"
}
]
],
"tags": [
{
"key": "host",
"operator": "=",
"value": "pihole_1"
}
]
},
{
"alias": "IP",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
}
],
"hide": false,
"measurement": "pihole",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT derivative(mean(\"ads_blocked_today\"), 10s) AS \"Queries Blocked\" FROM \"pihole\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($interval) fill(null)",
"rawQuery": false,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"reply_IP"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"30s"
],
"type": "non_negative_derivative"
}
]
],
"tags": [
{
"key": "host",
"operator": "=",
"value": "pihole_1"
}
]
},
{
"alias": "NODATA",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
}
],
"hide": false,
"measurement": "pihole",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT derivative(mean(\"ads_blocked_today\"), 10s) AS \"Queries Blocked\" FROM \"pihole\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($interval) fill(null)",
"rawQuery": false,
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"reply_NODATA"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"30s"
],
"type": "non_negative_derivative"
}
]
],
"tags": [
{
"key": "host",
"operator": "=",
"value": "pihole_1"
}
]
},
{
"alias": "NXDOMAIN",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
}
],
"hide": false,
"measurement": "pihole",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT derivative(mean(\"ads_blocked_today\"), 10s) AS \"Queries Blocked\" FROM \"pihole\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($interval) fill(null)",
"rawQuery": false,
"refId": "D",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"reply_NXDOMAIN"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"30s"
],
"type": "non_negative_derivative"
}
]
],
"tags": [
{
"key": "host",
"operator": "=",
"value": "pihole_1"
}
]
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Realtime Replies",
"tooltip": {
"shared": true,
"sort": 1,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 0,
"format": "none",
"label": "",
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
"load1": "rgb(28, 255, 0)",
"load15": "rgb(0, 100, 255)",
"load5": "rgb(255, 0, 29)"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"description": "Current system load, i.e. the number of processes using CPU or waiting for system resources (usually CPU and disk). The 3 metrics refer to 1, 5 and 15 minute averages. The system calculates this once every 5 seconds.\n\nFor more information check this [Wikipedia article](https://en.wikipedia.org/wiki/Load_(computing))",
"fill": 1,
"gridPos": {
"h": 5,
"w": 8,
"x": 0,
"y": 53
},
"id": 96,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"hideEmpty": false,
"hideZero": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sideWidth": null,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "netdata_system_load_load_average{chart=\"system.load\",family=\"load\",instance=\"10.9.0.2:19990\",job=\"netdata\"}",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
"legendFormat": "{{dimension}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Load",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "none",
"label": "",
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
"buffers": "rgb(0, 99, 255)",
"cached": "rgb(255, 103, 0)",
"free": "rgb(27, 255, 0)",
"swap": "rgb(255, 204, 0)",
"used": "rgb(255, 0, 31)"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"description": "System Random Access Memory (i.e. physical memory) usage.",
"fill": 1,
"gridPos": {
"h": 5,
"w": 8,
"x": 0,
"y": 58
},
"id": 98,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "netdata_system_swap_MiB_average{chart=\"system.swap\",dimension=\"used\",family=\"swap\",instance=\"10.9.0.2:19990\",job=\"netdata\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "swap",
"refId": "B"
},
{
"expr": "netdata_system_ram_MiB_average{chart=\"system.ram\",family=\"ram\",instance=\"10.9.0.2:19990\",job=\"netdata\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{dimension}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Memory",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "decmbytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
"in": "dark-green",
"out": "dark-yellow",
"reads": "rgb(29, 255, 0)",
"writes": "rgb(255, 205, 0)"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fill": 1,
"gridPos": {
"h": 5,
"w": 8,
"x": 0,
"y": 63
},
"id": 103,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "netdata_disk_io_KiB_persec_average{chart=\"disk.mmcblk0\",family=\"mmcblk0\",instance=\"10.9.0.2:19990\",job=\"netdata\"}",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
"legendFormat": "{{dimension}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Disk Activity",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "KBs",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
"received": "rgb(28, 255, 0)",
"sent": "rgb(255, 206, 0)"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"description": "Total IPv4 Traffic.",
"fill": 1,
"gridPos": {
"h": 5,
"w": 8,
"x": 0,
"y": 68
},
"id": 100,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "netdata_net_net_kilobits_persec_average{chart=\"net.eth0\",family=\"eth0\",instance=\"10.9.0.2:19990\",job=\"netdata\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{dimension}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Network Activity",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "KBs",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": false,
"schemaVersion": 18,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"datasource": "Prometheus",
"filters": [],
"hide": 0,
"label": "",
"name": "Filters",
"skipUrlSync": false,
"type": "adhoc"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"hidden": false,
"nowDelay": "",
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "PI-Hole",
"uid": "MIBVglomg",
"version": 26
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment