Prometheus role
This commit is contained in:
parent
091bf9a0d8
commit
c1c995e38d
9 changed files with 195 additions and 0 deletions
22
monitoring.yml
Normal file
22
monitoring.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
# 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
|
Loading…
Add table
Add a link
Reference in a new issue