This commit is contained in:
Iain Learmonth 2026-05-25 17:27:45 +01:00
parent 84cf62ab14
commit fbab6440ab

View file

@ -17,17 +17,13 @@ scrape_configs:
static_configs: static_configs:
- targets: - targets:
- 'host.containers.internal:9100' - 'host.containers.internal:9100'
{% for host in groups['ipaservers'] %} labels:
- "{{ hostvars[host]['node_exporter_tailscale_ipv4'].stdout }}:9100" hostname: "{{ inventory_hostname }}"
{% endfor %} {% for host in (groups['ipaservers'] + groups['keycloak'] + groups['radius'] + groups['generic']) %}
{% for host in groups['keycloak'] %} - targets:
- "{{ hostvars[host]['node_exporter_tailscale_ipv4'].stdout }}:9100"
{% endfor %}
{% for host in groups['radius'] %}
- "{{ hostvars[host]['node_exporter_tailscale_ipv4'].stdout }}:9100"
{% endfor %}
{% for host in groups['generic'] %}
- "{{ hostvars[host]['node_exporter_tailscale_ipv4'].stdout }}:9100" - "{{ hostvars[host]['node_exporter_tailscale_ipv4'].stdout }}:9100"
labels:
hostname: "{{ host }}"
{% endfor %} {% endfor %}
file_sd_configs: file_sd_configs:
- files: - files: