Skip to content

jasapple/pihole-prom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

Prometheus endpoint for Pihole v5

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published