global:
resolve_timeout: 1m
slack_api_url: *******
route:
receiver: 'outlook-notification'
receiver: 'slack-notification'
receivers:
- name: 'outlook-notification'
email_configs:
- to: *******
from: *******
smarthost: *******
auth_username: *******
auth_identity: *******
auth_password: *******
send_resolved: true
- name: 'slack-notification'
slack_configs:
- channel: '******'
send_resolved: true
global:
resolve_timeout: 1m
slack_api_url: *******
route:
receiver: default-notification
receivers:
- name: default-notification
email_configs:
- to: *******
from: *******
smarthost: *******
auth_username: *******
auth_identity: *******
auth_password: *******
send_resolved: true
slack_configs:
- channel: '******'
send_resolved: true
Option 2: set up routing rules to forward alerts to two separate receivers.
global:
resolve_timeout: 1m
slack_api_url: *******
route:
receiver: null
routes:
- receiver: outlook-notification
continue: true
- receiver: slack-notification
receivers:
- name: null
- name: outlook-notification
email_configs:
- to: *******
from: *******
smarthost: *******
auth_username: *******
auth_identity: *******
auth_password: *******
send_resolved: true
- name: slack-notification
slack_configs:
- channel: '******'
send_resolved: true
With option 2 as shown, there are no 'match' or 'match_re' clauses, so they always match. However with some matching you can arrange for a subset of alerts to go to each recipient.