alertmanager/config/testdata/conf.slack-default-api-url-file.yml
Simon Pasquier 48a99764a1
*: bump to Go 1.17 (#2792)
* *: bump to Go 1.17

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* *: fix yamllint errors

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2021-12-22 14:03:53 +01:00

20 lines
522 B
YAML

global:
slack_api_url_file: '/global_file'
route:
receiver: 'slack-notifications'
group_by: [alertname, datacenter, app]
receivers:
- name: 'slack-notifications'
slack_configs:
# Use global
- channel: '#alerts1'
text: 'test'
# Override global with other file
- channel: '#alerts2'
text: 'test'
api_url_file: '/override_file'
# Override global with inline URL
- channel: '#alerts3'
text: 'test'
api_url: 'http://mysecret.example.com/'