Sign inSign up

eddi16/pihole_exporter

By eddi16

•Updated about 6 years ago

Image
0

10K+

eddi16/pihole_exporter repository overview

Container used to export pihole metrics to prometheus.

Instructions:

  • Replace with the hostname/ip of the host/container running pihole.
  • Adjust the volume to the location where pihole data is stored. In the below example, pihole is running in a container so the mounted volume is the same volume mounted for the pihole conainer.
  • Adjust the listening port 9617 as necessary. Configure prometheus to poll this port to retreive metrics.

Example docker-compose.yml:


  pihole-exporter:
    container_name: pihole_exporter
    image: eddi16/pihole_exporter
    entrypoint: ["pihole_exporter","--pihole","<pihole host>:9080","--interface","0.0.0.0","--port","9617"]
    ports:
      - "9617:9617"
    volumes:
    - "/usr/docker/pihole/pihole:/etc/pihole"
    restart: unless-stopped

Tag summary

Content type

Image

Digest

Size

23.7 MB

Last updated

about 6 years ago

docker pull eddi16/pihole_exporter