Adding a prometheus metrics exporter directly to pihole's web interface.
Based off pi-hole/pi-hole v5.18.3 and pi-hole/web v5.21
sudo ./install.sh
This will install a patch to the following:
- /var/www/html/admin/
- settings.php
- var/www/html/admin/scripts/pi-hole/php
- savesettings.php
- /opt/pihole/
- webpage.sh
and add the new metrics.php
to /var/www/html/admin/
- job_name: pihole
metrics_path: "/admin/metrics.php"
static_configs:
- targets:
- 192.168.0.53 # IP of pihole