mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-29 07:10:18 +00:00
3c9df6fae7
Signed-off-by: gardar <gardar@users.noreply.github.com>
19 lines
475 B
YAML
19 lines
475 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
any_errors_fatal: true
|
|
roles:
|
|
- prometheus.prometheus.alertmanager
|
|
vars:
|
|
alertmanager_slack_api_url: "http://example.com"
|
|
alertmanager_receivers:
|
|
- name: slack
|
|
slack_configs:
|
|
- send_resolved: true
|
|
channel: '#alerts'
|
|
alertmanager_route:
|
|
group_by: ['alertname', 'cluster', 'service']
|
|
group_wait: 30s
|
|
group_interval: 5m
|
|
repeat_interval: 3h
|
|
receiver: slack
|