You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Tom Wilkie 6d9ae78e7d
Datasource template variable should be labelled 'Data Source' (#19)
12 months ago
.github/workflows Switch from Travis to GitHub Actions 12 months ago
dnsmasq-mixin Datasource template variable should be labelled 'Data Source' (#19) 12 months ago
examples/openwrt-init.d Add init script for openwrt. (#8) 2 years ago
testdata add integration test (running against an actual dnsmasq) 4 years ago
travis add integration test (running against an actual dnsmasq) 4 years ago
.promu.yml Add a build_info metric and a promu build spec. (#9) 2 years ago
CONTRIBUTING.md Initial commit 5 years ago
Dockerfile Bump docker file so it builds again. (#18) 12 months ago
LICENSE Initial commit 5 years ago
README.md Added Dockerfile (#5) 3 years ago
dnsmasq.go Update github.com/prometheus/common dependency (#16) 12 months ago
dnsmasq_exporter.service Initial commit 5 years ago
dnsmasq_test.go Metrics collection should not break on missing leases file (#14) 1 year ago
go.mod Bump github.com/miekg/dns from 1.1.14 to 1.1.25 (#17) 12 months ago
go.sum Bump github.com/miekg/dns from 1.1.14 to 1.1.25 (#17) 12 months ago

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

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']