// the find
eko/pihole-exporter
A Prometheus exporter for PI-Hole's Raspberry PI ad blocker
A Prometheus exporter that scrapes Pi-hole's admin API and exposes ~19 metrics including block rates, query types, top domains, and per-client stats. Aimed at homelabbers who already run Pi-hole and want it in Grafana alongside the rest of their stack. Ships a pre-built dashboard JSON so you're not starting from scratch.
Multi-instance support out of the box — pass comma-separated hostnames and it fans out scrapes, which is genuinely useful if you run primary/secondary Pi-holes. Pre-built Grafana dashboard in both Prometheus and InfluxDB 2 flavors is included in the repo, not just linked externally. Clean internal package layout (config, metrics, pihole client, server all separated) for a project this size. Binary releases for arm/amd64/386 across Linux/Mac/Windows, so you can drop it on the Pi directly without a Go toolchain.
The Pi-hole v6 API changed significantly (moved to FTL REST API with session tokens), and there are open issues about compatibility — if you're running a recent Pi-hole, check the issue tracker before deploying. The password is logged in plaintext at startup in debug mode, visible in any log aggregation you pipe this into. No support for Pi-hole's per-client breakdown metrics beyond top_sources, so you can't alert on a specific device going rogue. The `queries_last_10min` metric name drops the `pihole_` prefix that every other metric uses — minor but will bite you in any dashboard query that wildcards on `pihole_*`.