No description
Find a file
Vincent Composieux 7457599d3e
Initialize
2019-05-08 23:54:32 +02:00
config Initialize 2019-05-08 23:54:32 +02:00
internal Initialize 2019-05-08 23:54:32 +02:00
.gitignore Initialize 2019-05-08 23:54:32 +02:00
go.mod Initialize 2019-05-08 23:54:32 +02:00
go.sum Initialize 2019-05-08 23:54:32 +02:00
LICENSE Initialize 2019-05-08 23:54:32 +02:00
main.go Initialize 2019-05-08 23:54:32 +02:00
README.md Initialize 2019-05-08 23:54:32 +02:00

PI-Hole Prometheus Exporter

This is a Prometheus exporter for PI-Hole's Raspberry PI ad blocker.

Prerequisites

Installation

Manually

First, retrieve the project:

$ go get -u github.com/eko/pihole-exporter
# or
$ git clone https://github.com/eko/pihole-exporter.git

Then, build the binary:

$ GOOS=linux GOARCH=arm GOARM=7 go build -o pihole_exporter .

Usage

In order to run the exporter, type the following command (arguments are optional):

$ ./pihole_exporter -pihole_hostname 192.168.1.10 -pihole_password azerty

Available options

# Interval of time the exporter will fetch data from PI-Hole
  -interval duration (optional) (default 5s)

# Hostname of the Raspberry PI where PI-Hole is installed
  -pihole_hostname string (optional) (default "127.0.0.1")

# Password defined on the PI-Hole interface
  -pihole_password string (optional)

# Port to be used for the exporter
  -port string (optional) (default "9311")