Prometheus metric exporter for dnsmasq servers
Find a file
2018-05-05 17:01:39 +02:00
CONTRIBUTING.md Initial commit 2017-10-30 06:23:40 -07:00
dnsmasq.go Set RecursionDesired header to fix SERVFAIL (#1) 2018-05-05 17:01:39 +02:00
dnsmasq_exporter.service Initial commit 2017-10-30 06:23:40 -07:00
LICENSE Initial commit 2017-10-30 06:23:40 -07:00
README.md Initial commit 2017-10-30 06:23:40 -07:00

dnsmasq exporter

dnsmasq_exporter is an exporter for Prometheus, allowing you to monitor/alert on the number of DHCP leases and various DNS statistics.

See also the “cache statistics” section in https://manpages.debian.org/stretch/dnsmasq-base/dnsmasq.8.en.html#NOTES

This is not an official Google product.

Installation

go get -u github.com/google/dnsmasq_exporter

Usage

Place dnsmasq_exporter.service in /etc/systemd/system/dnsmasq_exporter.service, then enable and start the service using:

systemctl daemon-reload
systemctl enable --now dnsmasq_exporter

Then, add the endpoint to your Prometheus configuration file:

scrape_configs:
  - job_name: dnsmasq
    static_configs:
      - targets: ['localhost:9153']