ansible/monitoring.yml

19 lines
450 B
YAML
Raw Normal View History

2019-05-05 14:07:04 +02:00
---
# Deploy Prometheus
- hosts: prometheus-pacaterie.adm.auro.re
vars:
# Prometheus targets.json
prometheus_targets:
2019-07-22 20:56:43 +02:00
- labels: {job: node}
targets: "{{ groups['pacaterie'] | map('replace', '.org', '.org:9100') | list | sort }}"
- labels: {job: prometheus}
targets: ['localhost:9090']
2019-05-05 14:07:04 +02:00
roles:
- prometheus
- prometheus-alertmanager
# Monitor all hosts
2019-05-05 14:26:38 +02:00
- hosts: pacaterie
2019-05-05 14:07:04 +02:00
roles:
- prometheus-node