Prometheus exporter for Dnsmasq
docker pull quay.io/ricardbejarano/dnsmasq_exporter
- Requires Dnsmasq 2.69 or above!
- Tune your
dnsmasq_exporterconfiguration. All configuration is done through environment variables:DNSMASQ_SERVERS: (defaults to127.0.0.1:53) comma-separated list of<address>:<port>pairs of Dnsmasq servers' addressesEXPORTER_LISTEN_ADDR: (defaults to127.0.0.1:9153), bind address fordnsmasq_exporter
Available on Docker Hub as docker.io/ricardbejarano/dnsmasq_exporter:
Available on RedHat Quay as quay.io/ricardbejarano/dnsmasq_exporter:
docker build -t dnsmasq_exporter .
docker run -it -p 9153:9153 dnsmasq_exportergo build -o bin/ .
./bin/dnsmasq_exporterAdd the following to prometheus.yml:
scrape_configs:
- job_name: "dnsmasq"
static_configs:
- targets: ["<DNSMASQ_EXPORTER_ADDRESS>:9153"]