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:
- targets:
- 'host.containers.internal:9100'
{% for host in groups['ipaservers'] %}
- "{{ hostvars[host]['node_exporter_tailscale_ipv4'].stdout }}:9100"
{% endfor %}
{% for host in groups['keycloak'] %}
- "{{ 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'] %}
labels:
hostname: "{{ inventory_hostname }}"
{% for host in (groups['ipaservers'] + groups['keycloak'] + groups['radius'] + groups['generic']) %}
- targets:
- "{{ hostvars[host]['node_exporter_tailscale_ipv4'].stdout }}:9100"
labels:
hostname: "{{ host }}"
{% endfor %}
file_sd_configs:
- files: