bind exporter installation

20 views
Skip to first unread message

nina guo

unread,
Jan 20, 2022, 11:56:36 PM1/20/22
to Prometheus Users
Hi guys,

We are configuring bind exporter in k8s cluster.

Here comes several questions:
- should bind exporter and bind server on a same server? Can we install bind exporter on a different server? if we install on a different server, which parameters should be specified? Whether the following parameter is enough?
 --bind.stats-url=http://XXX:8053/
- we encounter an issue that we cannot get any metrics which are required to be collected by bind exporter, any critical ACL we haven't set?

Brian Candler

unread,
Jan 21, 2022, 3:31:47 AM1/21/22
to Prometheus Users
On Friday, 21 January 2022 at 04:56:36 UTC ninag...@gmail.com wrote:
- should bind exporter and bind server on a same server? Can we install bind exporter on a different server?


"It's recommended to run the bind_exporter next to BIND, so it's only necessary to open a port locally."  [my emphasis]
But you can query the stats from a remote exporter if you need to.
 
 if we install on a different server, which parameters should be specified? Whether the following parameter is enough?
 --bind.stats-url=http://XXX:8053/
- we encounter an issue that we cannot get any metrics which are required to be collected by bind exporter, any critical ACL we haven't set?

Did you change this in your bind config?

statistics-channels { inet 127.0.0.1 port 8053 allow { 127.0.0.1; }; 
};

You'll need to bind to a different interface than 127.0.0.1 (maybe 0.0.0.0 for "all interfaces"), and you'll need to allow the source IP of your exporter. 

Brian Candler

unread,
Jan 21, 2022, 3:33:01 AM1/21/22
to Prometheus Users
You can test like this:

curl -sS localhost:9119/metrics | grep bind_up
# HELP bind_up Was the Bind instance query successful?
# TYPE bind_up gauge
bind_up 1

If bind_up is 0 then it's failing to communicate to bind over the statistics channel.

Brian Candler

unread,
Jan 21, 2022, 3:37:21 AM1/21/22
to Prometheus Users
And of course, on the node where you're running bind_exporter, try


If you get a response which is a splurge of XML, you're good to go.  If you don't, then you need to adjust your bind statistics-channels configuration until you do.

Reply all
Reply to author
Forward
0 new messages