Skip to content
dnsmasq exporter for Prometheus
Branch: master
Clone or download
stapelberg Merge pull request #2 from WilliButz/add-features
add basic landing page, configurable metrics path and more log output
Latest commit 14cdb8f May 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
testdata add integration test (running against an actual dnsmasq) May 5, 2018
travis add integration test (running against an actual dnsmasq) May 5, 2018
.travis.yml add integration test (running against an actual dnsmasq) May 5, 2018
CONTRIBUTING.md Initial commit Oct 30, 2017
LICENSE Initial commit Oct 30, 2017
README.md add travis badge May 5, 2018
dnsmasq.go add log output and use the prometheus log library May 6, 2018
dnsmasq_exporter.service Initial commit Oct 30, 2017
dnsmasq_test.go

README.md

dnsmasq exporter

Build Status

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

The minimum required version of dnsmasq is 2.69, which added support for querying the statistics via DNS.

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']
You can’t perform that action at this time.