Pi-hole - RESTful API

Grafana Dashboard that consumes Pi-hole API without auth. All simple, leveraging the input.http from telegraf.

Pi-hole - RESTful API screenshot 1

Just use telegraf and the input.http with the next details, of course point to your pi-hole:

[[inputs.http]] 
#PiHole URL for data in JSON format 
urls = ["http://192.168.1.3/admin/api.php"] 

method = "GET"

 #Overwrite measurement name from default `http` to `pihole_stats`
 name_override = "pihole_stats" 

#Exclude host items from tags 
tagexclude = ["host"] 

#Data from HTTP in JSON format 
data_format = "json" 

#JSON values to set as string fields
json_string_fields = ["url", "status"] 

insecure_skip_verify = true

Restar telegraf, and that’s it.

Then download or import this Dashboard to your Grafana, and you should see something similar to the next: alt tag

Hope you like it!

Revisions
RevisionDescriptionCreated
Raspberry Pi

Raspberry Pi

by Grafana Labs
Grafana Labs solution

Easily monitor Raspberry Pi, the small, single-board computers, with Grafana Cloud's out-of-the-box monitoring solution.

Learn more

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies