labels
This commit is contained in:
parent
84cf62ab14
commit
fbab6440ab
1 changed files with 6 additions and 10 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue