unbound_exporter: Only listen to primary interface

This commit is contained in:
Timo Makinen 2025-06-21 16:14:33 +00:00
parent d5d6176b13
commit f64c9cac17

View file

@ -14,9 +14,7 @@ CAfile = {{ tls_certs }}/ca.crt
syslog = yes syslog = yes
[unbound_exporter] [unbound_exporter]
{% for ip in ansible_all_ipv4_addresses %} accept = {{ network_interfaces[0].ipaddr }}:9167
accept = {{ ip }}:9167
{% endfor %}
connect = 127.0.0.1:9167 connect = 127.0.0.1:9167
{% for host in groups['prometheus'] %} {% for host in groups['prometheus'] %}
checkHost = {{ host }} checkHost = {{ host }}