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:
|
||||
- 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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue