Go to file
Tom Wilkie 6d9ae78e7d
Datasource template variable should be labelled 'Data Source' (#19)
Signed-off-by: Tom Wilkie <tom@grafana.com>
2021-10-19 18:55:15 +02:00
.github/workflows Switch from Travis to GitHub Actions 2021-10-16 08:44:51 +02:00
dnsmasq-mixin Datasource template variable should be labelled 'Data Source' (#19) 2021-10-19 18:55:15 +02:00
examples/openwrt-init.d Add init script for openwrt. (#8) 2020-10-11 19:18:38 +02:00
testdata add integration test (running against an actual dnsmasq) 2018-05-05 17:02:25 +02:00
travis add integration test (running against an actual dnsmasq) 2018-05-05 17:02:25 +02:00
.promu.yml Add a build_info metric and a promu build spec. (#9) 2020-10-11 23:42:22 +02:00
CONTRIBUTING.md Initial commit 2017-10-30 06:23:40 -07:00
dnsmasq_exporter.service Initial commit 2017-10-30 06:23:40 -07:00
dnsmasq_test.go Metrics collection should not break on missing leases file (#14) 2021-08-08 15:07:29 +02:00
dnsmasq.go Update github.com/prometheus/common dependency (#16) 2021-10-06 16:31:00 +02:00
Dockerfile Bump docker file so it builds again. (#18) 2021-10-14 20:24:47 +02:00
go.mod Bump github.com/miekg/dns from 1.1.14 to 1.1.25 (#17) 2021-10-06 17:36:42 +02:00
go.sum Bump github.com/miekg/dns from 1.1.14 to 1.1.25 (#17) 2021-10-06 17:36:42 +02:00
LICENSE Initial commit 2017-10-30 06:23:40 -07:00
README.md Added Dockerfile (#5) 2019-06-17 16:40:24 +02:00

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

Alternative usage

docker build -t dnsmasq_exporter .
docker run --restart=unless-stopped --net=host dnsmasq_exporter

Then, add the endpoint to your Prometheus configuration file:

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