2021-05-29 11:45:35 +00:00
|
|
|
---
|
|
|
|
- name: Converge
|
|
|
|
hosts: all
|
2021-05-29 15:52:24 +00:00
|
|
|
vars:
|
|
|
|
prometheus_config_flags_extra:
|
|
|
|
- name: alertmanager.timeout
|
|
|
|
value: 10s
|
|
|
|
prometheus_alertmanager_config:
|
|
|
|
- scheme: https
|
|
|
|
path_prefix: alertmanager/
|
|
|
|
basic_auth:
|
|
|
|
username: user
|
|
|
|
password: pass
|
|
|
|
static_configs:
|
|
|
|
- targets:
|
|
|
|
- "127.0.0.1:9093"
|
|
|
|
prometheus_alert_relabel_configs:
|
|
|
|
- action: labeldrop
|
|
|
|
regex: replica
|
|
|
|
prometheus_targets:
|
|
|
|
- name: node
|
|
|
|
config:
|
|
|
|
- targets:
|
|
|
|
- localhost:9100
|
|
|
|
labels:
|
|
|
|
env: test
|
2021-05-29 11:45:35 +00:00
|
|
|
roles:
|
|
|
|
- role: xoxys.prometheus
|