mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-15 10:32:37 +00:00
b5ad65fa32
* Omit empty config fields upon remarshalling to elide secrets * added test checking for empty or null fields and blank regexps
28 lines
543 B
YAML
28 lines
543 B
YAML
global:
|
|
smtp_smarthost: 'localhost:25'
|
|
smtp_from: 'alertmanager@example.org'
|
|
smtp_auth_username: ''
|
|
smtp_auth_password: ''
|
|
hipchat_auth_token: 'mysecret'
|
|
hipchat_url: 'https://hipchat.foobar.org/'
|
|
slack_api_url: 'mysecret'
|
|
|
|
|
|
|
|
templates:
|
|
- '/etc/alertmanager/template/*.tmpl'
|
|
|
|
route:
|
|
group_by: ['alertname', 'cluster', 'service']
|
|
|
|
receiver: team-X-mails
|
|
routes:
|
|
- match_re:
|
|
service: ^(foo1|foo2|baz)$
|
|
receiver: team-X-mails
|
|
|
|
receivers:
|
|
- name: 'team-X-mails'
|
|
email_configs:
|
|
- to: 'team-X+alerts@example.org'
|