Creating alert policies in Dagster+
You can create alert policies in the Dagster+ UI or with the dagster-cloud
CLI.
Alert policies are configured on a per-deployment basis. This means, for example, that asset alerts configured in a prod deployment are only applicable to assets in that deployment.
note
To send alert notifications through a channel other than email, you will need to configure an alert notification service.
In the UI
- In the Dagster UI, click Deployment.
- In the left sidebar, click Alert policies.
- Click Create alert policy.
- Choose the policy type from the menu and click Continue.
- Choose targets and events (if applicable) for your alert and click Continue.
- Choose a notification channel for your alert and click Continue.
- Review and save your alert and click Save alert.
Using the CLI
- Create an alert policy configuration file. For examples, see the example configuration reference.
- Sync the alert policy configuration file to your Dagster+ deployment:
dagster-cloud deployment alert-policies sync -a /path/to/alert_policies.yaml