pihole_exporter
Fork from nlamirault/pihole_exporter
, this fixes metrics format changes in pi-hole v3.3.
Also adds support for arm in Dockerfile.
Docker container for Raspberry Pi 3 (arm v7):
docker pull povilasv/arm-pihole_exporter
Building:
docker build -t povilasv/arm-pihole_exporter:latest -f Dockerfile_arm .
Note version number matcher pihole version this exporter supports.
Overview
This Prometheus exporter check your Pi-Hole statistics. Available metrics are :
- Ads blocked
- Domains blocked
- DNS Queries
- Top Ads
- Top Queries
- Top clients
Development
-
Build tool :
$ make build
-
Launch unit tests :
$ make test
Local Deployment
-
Launch Prometheus using the configuration file in this repository:
$ prometheus -config.file=prometheus.yml
-
Launch exporter:
$ pihole_exporter -log.level=debug
-
Check that Prometheus find the exporter on http://localhost:9090/targets
-
Run Grafana and import the dashboard dashboard.json:
$ docker run -d --name=grafana -p 3000:3000 grafana/grafana
Docker Deployment
Contributing
See CONTRIBUTING.
License
See LICENSE for the complete license.
Changelog
A changelog is available
Nicolas Lamirault mailto:nicolas.lamirault@gmail.com