ansible/monitoring.yml
2019-05-05 14:07:04 +02:00

23 lines
471 B
YAML

---
# Deploy Prometheus
- hosts: prometheus-pacaterie.adm.auro.re
vars:
# Prometheus targets.json
prometheus_targets:
- labels:
job: node
targets: # TODO {{ ansible_play_batch }}
- prometheus-pacaterie.adm.auro.re:9100
- labels:
job: prometheus
targets:
- localhost:9090
roles:
- prometheus
- prometheus-alertmanager
# Monitor all hosts
- hosts: all
roles:
- prometheus-node