Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 760 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 760 Bytes

pihole-prom

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

Installation

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/

Prometheus Scrape config

- job_name: pihole
  metrics_path: "/admin/metrics.php"
  static_configs:
    - targets:
    - 192.168.0.53 # IP of pihole

Further Reading

https://jasapple.com/pihole-prometheus/