ansible/monitoring.yml

63 lines
2.0 KiB
YAML
Raw Normal View History

2020-05-03 18:45:07 +02:00
#!/usr/bin/env ansible-playbook
2019-05-05 14:07:04 +02:00
---
2019-11-01 15:38:35 +01:00
- hosts: prometheus-fleming.adm.auro.re,prometheus-fleming-fo.adm.auro.re
2019-07-26 22:47:10 +02:00
vars:
2019-11-01 15:38:35 +01:00
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
2019-11-01 19:02:21 +01:00
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
2019-11-01 15:38:35 +01:00
2019-07-26 22:47:10 +02:00
# Prometheus targets.json
prometheus_targets:
2019-11-01 15:17:59 +01:00
- targets: |
{{ groups['fleming_physical'] + groups['fleming_vm'] | list | sort }}
2019-11-01 14:16:32 +01:00
prometheus_unifi_snmp_targets:
2019-11-01 15:17:59 +01:00
- targets: "{{ groups['fleming_unifi'] | list | sort }}"
2019-07-26 22:47:10 +02:00
roles:
- prometheus
2019-11-01 15:38:35 +01:00
- hosts: prometheus-pacaterie.adm.auro.re,prometheus-pacaterie-fo.adm.auro.re
2019-05-05 14:07:04 +02:00
vars:
2019-11-01 15:38:35 +01:00
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
2019-11-01 19:02:21 +01:00
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
2019-11-01 15:38:35 +01:00
2019-05-05 14:07:04 +02:00
# Prometheus targets.json
prometheus_targets:
2019-11-01 15:17:59 +01:00
- targets: |
{{ groups['pacaterie_physical'] + groups['pacaterie_vm'] | list | sort }}
2019-11-01 14:16:32 +01:00
prometheus_unifi_snmp_targets:
2019-11-01 15:17:59 +01:00
- targets: "{{ groups['pacaterie_unifi'] | list | sort }}"
roles:
- prometheus
2019-11-01 15:38:35 +01:00
- hosts: prometheus-edc.adm.auro.re,prometheus-edc-fo.adm.auro.re
2019-11-01 15:17:59 +01:00
vars:
2019-11-01 15:38:35 +01:00
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
2019-11-01 19:02:21 +01:00
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
2019-11-01 15:38:35 +01:00
2019-11-01 15:17:59 +01:00
# 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
2019-11-01 15:38:35 +01:00
- hosts: prometheus-georgesand.adm.auro.re,prometheus-georgesand-fo.adm.auro.re
2019-11-01 15:17:59 +01:00
vars:
2019-11-01 15:38:35 +01:00
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
2019-11-01 19:02:21 +01:00
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
2019-11-01 15:38:35 +01:00
2019-11-01 15:17:59 +01:00
# Prometheus targets.json
prometheus_targets:
- targets: |
{{ groups['georgesand_physical'] + groups['georgesand_vm'] | list | sort }}
prometheus_unifi_snmp_targets:
- targets: "{{ groups['georgesand_unifi'] | list | sort }}"
2019-05-05 14:07:04 +02:00
roles:
- prometheus
# Monitor all hosts
2019-11-01 15:17:59 +01:00
- hosts: all,!unifi,!ovh
2019-05-05 14:07:04 +02:00
roles:
- prometheus-node