...
1global:
2 slack_api_url_file: '/global_file'
3route:
4 receiver: 'slack-notifications'
5 group_by: [alertname, datacenter, app]
6receivers:
7 - name: 'slack-notifications'
8 slack_configs:
9 # Use global
10 - channel: '#alerts1'
11 text: 'test'
12 # Override global with other file
13 - channel: '#alerts2'
14 text: 'test'
15 api_url_file: '/override_file'
16 # Override global with inline URL
17 - channel: '#alerts3'
18 text: 'test'
19 api_url: 'http://mysecret.example.com/'
View as plain text