Ask AI

You are viewing an unreleased or outdated version of the documentation

Slack & Dagster Cloud#

This guide is applicable to Dagster Cloud.

Dagster Cloud supports sending alerts to Slack channels using a Slack workplace app. Messages will be posted using a @Dagster Cloud bot user.


Prerequisites#

To follow the steps in this guide, you'll need:

  • Permissions in Slack that allow you to add apps to your Slack workspace
  • Organization, Admin, or Editor permissions in Dagster Cloud, which are required to create and manage alerts

Step 1: Connect Slack to Dagster Cloud#

  1. Sign in to your Dagster Cloud account.
  2. In the top navigation, click Deployment.
  3. Click the Alerts tab.
  4. Click Connect to Slack and complete the installation process.

Step 2: Invite the Dagster Cloud bot to Slack channels#

After the app is installed in your Slack workspace, invite the @Dagster Cloud bot user to the channel where notifications should be sent.


Step 3: Create an alert policy in Dagster Cloud#

Creating an alert policy can be done using the Dagster Cloud UI or the dagster-cloud CLI and a YAML file.

In the UI#

  1. Create and configure an alert policy. Refer to the Managing alerts in Dagster Cloud guide for more info.

  2. In the Notification Service section of the Create alert policy window, select the Slack option.

  3. In the field that displays, enter the name of the Slack channel you added the @Dagster Cloud bot user to.

    Note: One channel is allowed per alert policy. To post alerts to multiple channels, first invite the @Dagster Cloud bot and then create a new alert policy that posts to that channel.

  4. Click Save policy.


Disconnecting Slack#

To disconnect Dagster Cloud from Slack, remove the Dagster Cloud app from your Slack workspace. Refer to Slack's documentation for more info and instructions.

Once the app is removed, refresh the Alerts page in Dagster Cloud and the Connect to Slack option will be displayed.