Run unbound_exporter using a Unix socket
mainTo run the exporter on the same machine as Unbound, connect via a Unix socket.
- Ensure your
unbound.confhas remote control enabled on a socket:remote-control: control-enable: yes control-interface: /run/unbound.ctl - Run the exporter pointing to that socket. Use empty strings for
-unbound.caand-unbound.certwhen using a local Unix socket without TLS.
Metrics are served on port 9167 at the /metrics endpoint.
unbound_exporter -unbound.ca "" -unbound.cert "" -unbound.host "unix:///run/unbound.ctl"