For configuring Airflow notifications, see Airflow email notifications and Manage Airflow Dag notifications.
Alert types
Each Astro alert has a notification channel and a trigger type. The notification channel determines the format and destination of an alert and the trigger type defines what triggers the alert.Dag and task alerts
You can trigger an alert to a notification channel using one of the following trigger types:- DAG Failure: The alert triggers whenever the specified Dag fails. From the alert notification, you can open the failed Dag run in the Astro UI to start an Otto investigation. To investigate Dag failures automatically when this alert fires, send it to a Dag Trigger notification channel that calls the Otto investigation API. See Investigate with Otto.
- DAG Success: The alert triggers whenever the specified Dag completes.
- DAG Timeliness: The alert triggers whenever the specified Dag doesn’t produce a successful Dag run by the given Verification Time including the Look Back Period.
- DAG Duration: The alert triggers whenever the specified Dag doesn’t produce a successful Dag run within the given Duration. If the Dag fails before the specified duration is exceeded, the alert is triggered.
- Task Failure: The alert triggers whenever the specified task fails.
- Task Duration: The alert triggers when a specified task takes longer than expected to complete successfully. If the task fails, the alert is triggered even if it fails before the specified duration is exceeded.
You can only set a task duration alert for an individual task. Alerting on task group duration isn’t supported.
Deployment health alerts
PreviewThis feature is in Preview.
- Airflow DB Storage Unusually High: The alert triggers when the metadata database has tables that are larger than 50GiB (Info) or 75GiB (Warning).
- Deprecated Runtime Version: The alert triggers when your Deployment is using a deprecated Astro Runtime version.
- Job Scheduling Disabled: The alert triggers when the Airflow scheduler is configured to prevent automatic scheduling of new tasks using Dag schedules.
- Worker Queue at Capacity: The alert triggers when at least one worker queue in this Deployment is running the maximum number of tasks and workers.
Deployment health alert notifications
PreviewThis feature is in Preview.
Create an alert in the Astro UI
Prerequisites
- An Astro project.
- An Astro Deployment. Your Deployment must run Astro Runtime 7.1.0 or later to configure Astro alerts and it must have OpenLineage enabled.
- A configured notification channel.
Step 1: Create your alert
- New Astro UI
- Legacy UI
-
In the Astro UI, click Alerting > Alerts.
Deployment-specific alerts
If you don’t have permissions to add a notification channel or alert at your Workspace or Organization-level, you can add one in the Alerts form through the Deployment settings page.- In the Astro UI, click Deployments then select your Deployment.
- Click the Alerts tab.
- Click New Alert.
-
Choose the Alert Type.
- Duration: Enter the Duration for how long a Dag or task should take to run before you send an alert to your notification channels.
- Timeliness: Select the Days of Week that the alert should observe, the Verification Time when it should look for a Dag success, and the Lookback Period for how long it should look back for a verification time. For example, if an alert has a Verification Time of 3:00 PM UTC and a Lookback Period of 60 minutes, it will trigger whenever the given Dag doesn’t produce a successful Dag run from 2:00 to 3:00 PM UTC.
Initial evaluation behaviorAlerts only evaluate runs that occur after the alert’s creation. If a Dag ran successfully within the Look Back Period of a timeliness alert, the alert will still trigger on initial evaluation, since that run occurred before the alert was created.
- Choose the alert Severity, either Info, Warning, or Critical.
Step 2: Add alert rules
- Define the Workspace and Deployment
-
For Dag and Task Alerts, you can further customize the circumstances in which the alert is triggered by defining:
-
Attribute
- For Dag-level alerts: DAG ID
- For Task-level alerts: You can define rules for both the DAG ID and Task ID attributes.
-
Operator
- is one of: Select specific Dags or tasks the alert should apply to. You can also choose All dags to apply the alert to all Dags in the Deployment and All Tasks to apply the alert to all tasks in the Dag.
- contains: Define a substring that is in the DAG ID and/or Task ID for the Dags and/or tasks that the alert should apply to.
-
Values/Substring
The following example is a task-level alert for all tasks with a Task ID that contains the substring
prodin all Dags within a Deployment:
-
Attribute
Step 3: Add notification channels for the alert
Select the Notification Channels for the Alert. You can also create a new notification channel by clicking +Notification Channel. See Notification Channels for information on configuring and adding Notification Channels.Step 4: (Optional) Change an alert name
After you select a Dag that you want to apply an alert to, Astro automatically generates a name for your alert. However, you can choose to change the name of your alert.- Expand the Change alert names… section.
- Edit the Alert Name.
- Click Create Alert to save your changes.
Step 5: (Optional) Test your Dag failure alert
Astro alerts work whether your Dag run is manual or scheduled, so you can test your configured Astro alerts by failing your Dag manually.- In the Astro UI, click DAGs.
- Choose the Dag that has your alert configured.
- Trigger a Dag run.
-
Select Mark as and choose Failed to trigger an alert for a Dag failure.

-
Check your Slack, PagerDuty, or Email alerts for your Dag failure alert. The alert includes information about the Dag, Workspace, Deployment, and data lineage associated with the failure as well as direct links to the Astro UI.

Configure and add alert notification channels
You can send Astro alerts, including Deployment Health Alerts, to the following notification channels- Slack
- PagerDuty
- Dag trigger
- Opsgenie
For alerts triggered by a specific Dag run, Slack and email notifications include the Airflow Dag run ID. Use it to find the run in the Airflow UI.
Notification channels scope
When you create a notification channel, you can define whether it is available to a specific Deployment or available to an entire Workspace or Organization. The type of scope you can use for your notification channels depends on your user permissions.
Step 1: Configure your notification channel
- Slack
- PagerDuty
- Email
- Dag Trigger
To set up alerts in Slack, you need to create a Slack app in your Slack workspace. After you’ve created your app, you can generate a webhook URL in Slack where Astro will send alerts.
- Go to Slack API: Applications to create a new app in your organization’s Slack workspace.
- Click From scratch when prompted to choose how you want to create your app.
-
Enter a name for your app, like
astro-alerts, choose the Slack workspace where you want Astro to send your alerts, and then click Create App.
If you don’t have permission to install apps into your Slack workspace, you can still create the app, but you will need to request that an administrator from your team completes the installation.
- Select Incoming webhooks.
- On the Incoming webhooks page, click the toggle to turn on Activate Incoming Webhooks. See Sending messages using Incoming Webhooks.
- In the Webhook URLs for your Workspace section, click Add new Webhook to Workspace.
If you don’t have permission to install apps in your Slack workspace, click Request to Add New Webhook to send a request to your organization administrator.
- Choose the channel where you want to send your Astro alerts and click Allow.
- After your webhook is created, copy the webhook URL from the new entry in the Webhook URLs for your Workspace table.
Step 2: Add a notification channel in the Astro UI
You can add notification channels in the Astro UI.- In the Astro UI, click Alerting > Notification Channels.
- Click New Notification Channel.
- Enter a name for your notification channel.
- Choose the Channel Type.
- Add the notification channel information.
- Slack
- PagerDuty
- Email
- Dag Trigger
Paste the Webhook URL from your Slack workspace app. If you need to find a URL for an app you’ve already created, go to your Slack Apps page, select your app, and then choose the Incoming Webhooks page.
- Choose the scope by defining what you want to make Notification channel available to:
- Click Create notification channel.
Notification History
To view a historical log of all previously triggered Alerts for your Organization, click Notification History under the Alerting section of the navigation. You can filter the notification log based on:- Alert: Which Alert triggered the notification
- Time Range: The time range the notification was triggered in
- Notification Channel: The notification channel that is defined for the Alert
- Status: Whether the notification was successfully sent or failed

