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.
|
1 year ago | |
---|---|---|
.github/workflows | 1 year ago | |
dnsmasq-mixin | 1 year ago | |
examples/openwrt-init.d | 2 years ago | |
testdata | 5 years ago | |
travis | 5 years ago | |
.promu.yml | 2 years ago | |
CONTRIBUTING.md | 5 years ago | |
Dockerfile | 1 year ago | |
LICENSE | 5 years ago | |
README.md | 4 years ago | |
dnsmasq.go | 1 year ago | |
dnsmasq_exporter.service | 5 years ago | |
dnsmasq_test.go | 2 years ago | |
go.mod | 1 year ago | |
go.sum | 1 year ago |
README.md
dnsmasq exporter
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']