Monitor BIND DNS Server with Prometheus and Grafana on Ubuntu Server
Systemd service
================
[Unit]
Description=Bind Exporter
Wants=network-online.target
After=network-online.target
[Service]
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/etc/bind_exporter/bind_exporter
–bind.pid-file=/var/run/named/named.pid
–bind.timeout=20s
–web.listen-address=0.0.0.0:9153
–web.telemetry-path=/metrics
–bind.stats-url=http://127.0.0.1:8053/
–bind.stats-groups=server,view,tasks
Restart=always
[Install]
WantedBy=multi-user.target
Prometheus Scraping
====================
– job_name: ‘bind_exporter’
static_configs:
– targets: [‘10.11.1.2:9153’]
labels:
alias: bind_exporter
Configure bind
====================
statistics-channels {
inet 127.0.0.1 port 8053 allow { 127.0.0.1; };
};
by Ripon4You
linux dns server
what about multiple dns server ? If i have 3 or 4 dns server then what i have to do ? Thanks