# How to Set Up Alert Delivery Channels


> Set up workspace and resource alert delivery channels using Slack, email, webhooks, and other integrations.



You can set up dedicated alert delivery channels to get notified whenever your resources (sources, destinations, transformations, or Profiles projects) have failures or errors. This allows you to take proactive measures to fix the problems before they escalate into major issues.

These channels apply to your whole workspace. To route the alerts for a specific resource elsewhere, see [Set delivery channels for a resource](#set-delivery-channels-for-a-resource).

**Info**

Note that:

- You must enable **at least one** alert delivery channel to receive alerts.
- You can set up separate alert delivery channels for your Event Stream and Reverse ETL pipelines.
- Toggling off alerts for a channel automatically removes all the configurations. You will have to reconfigure the channel to use it again.
- RudderStack limits the alert delivery to one alert per resource per [alert type](https://www.rudderstack.com/docs/monitor/alerts/alert-types/index.md#overview) for each configured channel every 24 hours.

RudderStack provides the following alert delivery channel options:

## Slack

1. In the dashboard, click the **Setup** button next to **Slack**.

![Slack channel configuration for alerts](/docs/images/data-governance/configurable-alerts/slack-alerts-1.webp)

2. In the popup window, select your Slack **Workspace** and **Channel**. Authorize RudderStack to post the alerts by clicking **Allow**.

**Warning:** You should be an admin of the Slack workspace to grant RudderStack the necessary permissions to post to that channel.

![Slack channel configuration for alerts](/docs/images/data-governance/configurable-alerts/slack-alerts-2.webp)

3. Click **Send test alert** to send a test alert to the configured Slack channel.

![Slack channel configuration for alerts](/docs/images/data-governance/configurable-alerts/slack-alerts-3.webp)

4. Once the alert is triggered, RudderStack automatically sends a notification on the specified Slack channel. Click **Review on RudderStack** to go to the specific resource to investigate and fix the errors.

![Slack alerts](/docs/images/data-governance/configurable-alerts/slack-alerts-4.webp)

## Microsoft Teams

1. [Create an incoming webhook](https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook?tabs=newteams%2Cdotnet) for the Teams channel you wish to use.
2. In the dashboard, click the **Setup** button next to **MS Teams**.
3. Enter the incoming webhook URL to receive alerts on your preferred Teams channel. Then, click **Save**.

![Teams channel configuration for alerts](/docs/images/data-governance/configurable-alerts/teams-alerts-1.webp)

4. Click **Send test alert** to send a test alert to the configured Teams channel.
5. Once the alert is triggered, RudderStack automatically sends a notification on the specified Teams channel. Click **Review on RudderStack** to go to the specific resource to investigate and fix the errors.

![Teams alerts](/docs/images/data-governance/configurable-alerts/teams-alerts-2.webp)

## PagerDuty

1. [Create a service with an Events API v2 integration](https://support.pagerduty.com/main/docs/services-and-integrations#create-a-generic-events-api-integration) in your PagerDuty account and obtain the integration key.
2. In the dashboard, click the **Setup** button next to **PagerDuty**.
3. Specify the **Integration Key** to receive alerts as PagerDuty incidents.

![PagerDuty alerts](/docs/images/data-governance/configurable-alerts/pagerduty-alerts.webp)

4. Click **Send test alert** to send a test alert to your PagerDuty account.

## Incident.io

1. [Create an HTTP alert source](https://docs.incident.io/alerts/custom-http-sources) in your Incident.io account and obtain the following credentials:

  - Secret token (API key)
  - Alert source config ID

2. In the dashboard, click the **Setup** button next to **Incident.io**.
3. Specify the **API Key** and **Alert Source Config ID** to receive alerts as Incident.io incidents.

![Incident.io alerts](/docs/images/data-governance/configurable-alerts/incidentio-alerts.webp)

## Webhook

1. In the dashboard, click the **Setup** button next to **Webhook**.
2. Specify the webhook URL to receive the alerts. Then, click **Save**.

**Info**

RudderStack sends the alerts as a `POST` request to the configured endpoint while following the Prometheus styling format.

Prometheus is a widely accepted monitoring and alerting tool. Its alert format is compatible with various other monitoring and incident management tools like Squadcast, PagerDuty, etc.

A sample webhook response is shown:

```json
{
  "alerts": [{
    "endsAt": "0001-01-01T00:00:00Z",
    "labels": {
      "severity": "critical",
      "alertname": "partial-row-failures",
      "workspace": "<workspace_name>",
      "destination": "Failing Webhook",
      "workspaceId": "<workspace_id>",
      "organization": "<org_name>",
      "destinationId": "<destination_id>",
      "organizationId": "<org_id>",
      "configuredThreshold": 61
    },
    "status": "firing",
    "startsAt": "2024-02-05T00:02:49.933Z",
    "annotations": {
      "description": "Errors in processing or delivering events to Failing Webhook destination have exceeded the configured threshold of 61% within last 1 hour"
    },
    "fingerPrint": "d9885cc7f11b8db0"
  }],
  "status": "firing"
}
```

### Send alerts to downstream tools

You can also leverage webhooks to forward the alerts to any RudderStack-supported downstream tool: 

1. Set up a [webhook source](https://www.rudderstack.com/docs/sources/event-streams/cloud-apps/webhook-source/index.md). Note the webhook URL containing the source write key parameter.

![Webhook source](/docs/images/data-governance/configurable-alerts/webhook-source.webp)

2. Set up a [destination integration](https://www.rudderstack.com/docs/destinations/streaming-destinations/index.md), for example, [PagerDuty](https://www.rudderstack.com/docs/destinations/streaming-destinations/pagerduty/index.md). Connect it to the webhook source created in Step 1.
3. Once you set up the connection, specify the webhook source URL obtained in Step 1 in the **Enter URL** field where RudderStack forwards the alerts.

![Webhook configuration for alerts](/docs/images/data-governance/configurable-alerts/webhook-alerts.webp)

## Email

1. In the dashboard, click the **Setup** button next to **Email**.
2. Specify comma-separated email addresses of the users who would like to receive the alerts. Click **Add** to add more email addresses. Then, click **Save**.

![Email alerts](/docs/images/data-governance/configurable-alerts/email-alerts.webp)

Once the alert is triggered, these users will automatically get email alerts to investigate and fix the errors.

![Email alerts](/docs/images/data-governance/configurable-alerts/email-alerts-2.webp)

## Set delivery channels for a resource

You can set up specific alert delivery channels for individual resources. This gives you fine-grained control over how alerts are routed, allowing different resources to send notifications to different channels based on your operational needs.

To set up resource-level alert delivery channels:

1. Go to the resource and click the **Alerts** tab.
2. Under the **Channels** section, click **Setup** next to the channel you want to configure.
3. Configure your preferred platform using the same steps as the workspace-level setup in the sections above.

Note that:

- These resource-level alert delivery channel settings override the workspace-level settings **for that resource only**.
- If no channel overrides are set, or you have explicitly disabled all alert delivery channels for that resource, RudderStack automatically forwards all alerts to the channels configured for your workspace.

![Dashboard messaging when no channel is configured for a resource](/docs/images/data-governance/configurable-alerts/no-channel-configured.webp)

To revert the channel overrides back to the default workspace settings:

1. Click the reset icon (rounded arrow) next to the custom setting for the delivery channel.

![Revert to default workspace setting](/docs/images/data-governance/configurable-alerts/reset-channel-to-workspace-settings-1.webp)

2. Click **Reset** on the resulting confirmation dialog to remove the custom settings and revert to the default workspace setting.

![Revert to workspace setting confirmation dialog](/docs/images/data-governance/configurable-alerts/reset-channel-to-workspace-settings-2.webp)

## Alert delivery frequency

RudderStack limits the alert delivery to one alert per resource per [alert type](https://www.rudderstack.com/docs/monitor/alerts/alert-types/index.md#overview) for each configured channel every 24 hours.

This alerting logic ensures you are not spammed with notifications, especially in cases where you have configured multiple [alert types](https://www.rudderstack.com/docs/monitor/alerts/alert-types/index.md#overview) for your pipelines and some resources have their own overrides (custom alert settings) in place.

### Example

Suppose you get a [Partial row failures](https://www.rudderstack.com/docs/monitor/alerts/alert-types/index.md#partial-row-failures) alert for a particular Reverse ETL source. You will not get another alert for the same failure type for another 24 hours even if your data syncs are scheduled at a lesser frequency (for example, every one, five, or 12 hours). 

However, if that source encounters another failure type like a fatal sync, RudderStack will trigger an alert.

