feat: job specific file sd configs
This commit is contained in:
parent
bff8a9b612
commit
5a71d217f6
5 changed files with 14 additions and 9 deletions
|
|
@ -1,8 +1,10 @@
|
|||
---
|
||||
- targets:
|
||||
{% for host in groups['cdr_link'] %}
|
||||
- "{{ host }}:9100"
|
||||
{% endfor %}
|
||||
- targets:
|
||||
- "{{ hostvars[host]['node_exporter_tailscale_ipv4'].stdout }}:9100"
|
||||
labels:
|
||||
instance: "{{ host }}"
|
||||
hostname: "{{ host }}"
|
||||
job: node
|
||||
app: link
|
||||
{% endfor %}
|
||||
|
|
|
|||
|
|
@ -6,4 +6,5 @@
|
|||
job: node
|
||||
app: legacy_link
|
||||
instance: "{{ host }}"
|
||||
hostname: "{{ host }}"
|
||||
{% endfor %}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
---
|
||||
- targets:
|
||||
{% for host in groups['seafile'] %}
|
||||
- "{{ host }}:9100"
|
||||
{% endfor %}
|
||||
- targets:
|
||||
- "{{ hostvars[host]['node_exporter_tailscale_ipv4'].stdout }}:9100"
|
||||
labels:
|
||||
job: node
|
||||
app: seafile
|
||||
instance: "{{ host }}"
|
||||
hostname: "{{ host }}"
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue