Dagster+ supports sending alerts to Slack channels using a Slack workplace app. Messages will be posted using a @Dagster+
bot user.
To follow the steps in this guide, you'll need:
After the app is installed in your Slack workspace, you can add the @Dagster Cloud
bot user to the channels where notifications should be sent.
You can do that by going into the channel settings, selecting the Integrations
tab and selecting Add an App
.
You can also make a post in a channel to the @Dagster Cloud
bot user and you will be prompted to add it to the channel.
Creating an alert policy can be done using the Dagster+ UI or the dagster-cloud
CLI and a YAML file.
Create and configure an alert policy. Refer to the Managing alerts in Dagster+ guide for more info.
In the Notification Service section of the Create alert policy window, select the Slack option.
In the field that displays, enter the name of the Slack channel you added the @Dagster+
bot user to.
Note: One channel is allowed per alert policy. To post alerts to multiple channels, first invite the @Dagster+
bot and then create a new alert policy that posts to that channel.
Click Save policy.
To disconnect Dagster+ 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+ and the Connect to Slack option will be displayed.