From eb938db545b0c0f335c963e09ba528d5ddf4b5ee Mon Sep 17 00:00:00 2001 From: Vincent Composieux Date: Sat, 1 Jun 2019 12:48:33 +0200 Subject: [PATCH] Move Grafana dashboard to a grafana folder --- README.md | 2 +- .../dashboard.json | 24 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) rename PI-Hole-Exporter-Dashboard.json => grafana/dashboard.json (98%) diff --git a/README.md b/README.md index 57bf7f3..bcb4fd2 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This is a Prometheus exporter for [PI-Hole](https://pi-hole.net/)'s Raspberry PI ![Grafana dashboard](https://raw.githubusercontent.com/eko/pihole-exporter/master/dashboard.jpg) -Grafana dashboard is [available here](https://grafana.com/dashboards/10176). +Grafana dashboard is [available here](https://grafana.com/dashboards/10176) on the Grafana dashboard website and also [here](https://raw.githubusercontent.com/eko/pihole-exporter/master/grafana/dashboard.json) on the GitHub repository. ## Prerequisites diff --git a/PI-Hole-Exporter-Dashboard.json b/grafana/dashboard.json similarity index 98% rename from PI-Hole-Exporter-Dashboard.json rename to grafana/dashboard.json index 01dbd60..7a04502 100644 --- a/PI-Hole-Exporter-Dashboard.json +++ b/grafana/dashboard.json @@ -57,7 +57,7 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": "${DS_PROMETHEUS}", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -71,7 +71,7 @@ "gnetId": 10176, "graphTooltip": 0, "id": null, - "iteration": 1559076223664, + "iteration": 1559385551318, "links": [], "panels": [ { @@ -378,7 +378,7 @@ "strokeWidth": 1, "targets": [ { - "expr": "pihole_top_queries{hostname=~'$node'}", + "expr": "pihole_top_queries{hostname=~\"$node\"}", "format": "time_series", "intervalFactor": 1, "legendFormat": "{{ domain }}", @@ -425,7 +425,7 @@ "strokeWidth": 1, "targets": [ { - "expr": "pihole_reply{hostname=~'$node'}", + "expr": "pihole_reply{hostname=~\"$node\"}", "format": "time_series", "intervalFactor": 1, "legendFormat": "{{ type }}", @@ -470,7 +470,7 @@ "strokeWidth": 1, "targets": [ { - "expr": "pihole_top_ads{hostname=~'$node'}", + "expr": "pihole_top_ads{hostname=~\"$node\"}", "format": "time_series", "intervalFactor": 1, "legendFormat": "{{ domain }}", @@ -618,7 +618,7 @@ "showThresholdLabels": false, "showThresholdMarkers": true }, - "pluginVersion": "6.2.1", + "pluginVersion": "6.2.0", "targets": [ { "expr": "pihole_ads_percentage_today{hostname=~'$node'}", @@ -1200,10 +1200,10 @@ "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, + "bars": false, "dashLength": 10, "dashes": false, - "fill": 1, + "fill": 10, "gridPos": { "h": 5, "w": 12, @@ -1220,8 +1220,8 @@ "total": false, "values": false }, - "lines": false, - "linewidth": 1, + "lines": true, + "linewidth": 0, "links": [], "nullPointMode": "null", "options": {}, @@ -1350,5 +1350,5 @@ "timezone": "", "title": "PI-Hole Exporter", "uid": "MIBVglomg", - "version": 7 -} + "version": 159 +} \ No newline at end of file