bind-exporter on docker

7 views
Skip to first unread message

NemkeCloud

unread,
Jul 19, 2024, 2:42:26 AM (8 days ago) Jul 19
to Prometheus Users
Hi,
I am trying to use Prometheus and Grafana to monitor bind9 DNS installed on Ubuntu 22.04.
I have successfully installed Prometheus and Grafana but i am having trouble to setup https://hub.docker.com/r/prometheuscommunity/bind-exporter/tags [with docker composer / Portainer.]

Could someone write me example of bind-exporter docker compose configuration ?

That should work with:
1) Prometheus.yaml scraping configuration:
     -job_name: 'bind_exporter' 
          static_configs: -targets: ['192.168.10.10:9153']
             labels: 
               alias: bind_exporter

2) Bind configuration:
\etc\bind\named.config.options
statistics-channels {
  inet 127.0.0.1 port 8053 allow {127.0.0.1;};
};

Currently Grafana, Prometheus, node_explorer are part of the one stack called monitoring and are using the same docker network 172.18.0.0/24 while VM is using 192.168.10.10. Access to the vm is thru Static Public IP and NAT to internal IP.
                                                   
Reply all
Reply to author
Forward
0 new messages