ansible/monitoring.yml
2019-07-22 20:56:43 +02:00

18 lines
450 B
YAML

---
# Deploy Prometheus
- hosts: prometheus-pacaterie.adm.auro.re
vars:
# Prometheus targets.json
prometheus_targets:
- labels: {job: node}
targets: "{{ groups['pacaterie'] | map('replace', '.org', '.org:9100') | list | sort }}"
- labels: {job: prometheus}
targets: ['localhost:9090']
roles:
- prometheus
- prometheus-alertmanager
# Monitor all hosts
- hosts: pacaterie
roles:
- prometheus-node