mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 20:03:04 +00:00
9e84276add
Signed-off-by: Christian Krause <christian.krause@idiv.de>
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
---
|
|
provisioner:
|
|
inventory:
|
|
group_vars:
|
|
all:
|
|
alertmanager_binary_local_dir: '/tmp/alertmanager-linux-amd64'
|
|
alertmanager_config_dir: /opt/am/etc
|
|
alertmanager_db_dir: /opt/am/lib
|
|
alertmanager_web_listen_address:
|
|
- '127.0.0.1:9093'
|
|
- '127.0.1.1:9093'
|
|
alertmanager_web_external_url: 'http://localhost:9093/alertmanager'
|
|
alertmanager_resolve_timeout: 10m
|
|
alertmanager_slack_api_url: "http://example.com"
|
|
alertmanager_receivers:
|
|
- name: slack
|
|
slack_configs:
|
|
- send_resolved: true
|
|
api_url: 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX'
|
|
channel: '#alerts'
|
|
alertmanager_route:
|
|
group_by: ['alertname', 'cluster', 'service']
|
|
group_wait: 30s
|
|
group_interval: 5m
|
|
repeat_interval: 3h
|
|
receiver: slack
|
|
routes:
|
|
- match_re:
|
|
service: ^(foo1|foo2|baz)$$
|
|
receiver: slack
|
|
alertmanager_mesh:
|
|
listen-address: "127.0.0.1:6783"
|
|
peers:
|
|
- "127.0.0.1:6783"
|
|
- "alertmanager.demo.do.prometheus.io:6783"
|
|
alertmanager_version: 0.25.0
|