2021-04-02 01:57:55 +00:00
|
|
|
global:
|
|
|
|
slack_api_url_file: '/global_file'
|
|
|
|
route:
|
|
|
|
receiver: 'slack-notifications'
|
|
|
|
group_by: [alertname, datacenter, app]
|
|
|
|
receivers:
|
2021-12-22 13:03:53 +00:00
|
|
|
- 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/'
|