infra_public/vars/monitoring.yml

22 lines
756 B
YAML

maintainer_emails: '<redacted>, <redacted>'
all_targets:
node: "{{ belvedere_targets }}"
blackbox_ping_internal: "{{ blackbox_ping_internal}}"
blackbox_ping_internal:
- targets: "[ {%for host in groups['belvederi']%}'{{hostvars[host].ansible_host}}'{% if not loop.last %},{% endif %}{% endfor %} ]"
labels:
host: 'belvederi'
- targets: "[ {%for host in groups['strumenti']%}'{{hostvars[host].ansible_host}}'{% if not loop.last %},{% endif %}{% endfor %} ]"
labels:
host: 'strumenti'
blackbox_relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 127.0.0.1:9115