how to send alert notifications to multiple destinations code example

Example 1: how to send alert notifications to multiple destinations

route:
 receiver: slack_pagerduty

receivers:
  - name: slack_pagerduty
    slack_configs:
      - api_url: THE_WEBHOOK_URL
        channel: '#general'
    pagerduty_configs:
      - service_key: AN_INTEGRATION_KEY

Example 2: how to send alert notifications to multiple destinations

route:
 receiver: slack  # Fallback.
 routes:
   - match:
       severity: page
     continue: true
     receiver: slack
   - match:
       severity: page
     receiver: pagerduty


receivers:
  - name: slack
    slack_configs:
      - api_url: THE_WEBHOOK_URL
        channel: '#general'
  - name: pagerduty
    pagerduty_configs:
      - service_key: AN_INTEGRATION_KEY

Tags:

Misc Example