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