Creating a Prometheus Exporter for Pihole

Taken by Kenny Luo

First, some introduction

Why a new exporter?

Most days, ~20% of my traffic is ads

Straight to the source!

docker create \
--volume "/path/to/pihole-FTL.db:/pihole/pihole-FTL.db:ro" \
subtlepseudonym/pihole-exporter:latest

Running the exporter

docker create \
--name pihole-exporter \
--env PIHOLE_DSN="file:/pihole/pihole-FTL.db?_query_only" \
--volume "/path/to/pihole-FTL.db:/pihole/pihole-FTL.db:ro" \
--dns 172.17.01 \
subtlepseudonym/pihole-exporter:latest

DockerHub