53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
---
|
|
- hosts: prometheus-fleming.adm.auro.re
|
|
vars:
|
|
# Prometheus targets.json
|
|
prometheus_targets:
|
|
- targets: |
|
|
{{ groups['fleming_physical'] + groups['fleming_vm'] | list | sort }}
|
|
prometheus_unifi_snmp_targets:
|
|
- targets: "{{ groups['fleming_unifi'] | list | sort }}"
|
|
roles:
|
|
- prometheus
|
|
- prometheus-alertmanager
|
|
|
|
- hosts: prometheus-pacaterie.adm.auro.re
|
|
vars:
|
|
# Prometheus targets.json
|
|
prometheus_targets:
|
|
- targets: |
|
|
{{ groups['pacaterie_physical'] + groups['pacaterie_vm'] | list | sort }}
|
|
prometheus_unifi_snmp_targets:
|
|
- targets: "{{ groups['pacaterie_unifi'] | list | sort }}"
|
|
roles:
|
|
- prometheus
|
|
- prometheus-alertmanager
|
|
|
|
- hosts: prometheus-edc.adm.auro.re
|
|
vars:
|
|
# Prometheus targets.json
|
|
prometheus_targets:
|
|
- targets: |
|
|
{{ groups['edc_physical'] + groups['edc_vm'] | list | sort }}
|
|
prometheus_unifi_snmp_targets:
|
|
- targets: "{{ groups['edc_unifi'] | list | sort }}"
|
|
roles:
|
|
- prometheus
|
|
- prometheus-alertmanager
|
|
|
|
- hosts: prometheus-georgesand.adm.auro.re
|
|
vars:
|
|
# Prometheus targets.json
|
|
prometheus_targets:
|
|
- targets: |
|
|
{{ groups['georgesand_physical'] + groups['georgesand_vm'] | list | sort }}
|
|
prometheus_unifi_snmp_targets:
|
|
- targets: "{{ groups['georgesand_unifi'] | list | sort }}"
|
|
roles:
|
|
- prometheus
|
|
- prometheus-alertmanager
|
|
|
|
# Monitor all hosts
|
|
- hosts: all,!unifi,!ovh
|
|
roles:
|
|
- prometheus-node
|