Skip to content

Commit

Permalink
[docs] - Split up Cloud alert docs (DOC-177) (#20541)
Browse files Browse the repository at this point in the history
## Summary & Motivation

This PR splits up the Dagster Cloud alerting documentation to move
integration setup details to their own dedicated pages.

- Renames `/dagster-cloud/managing-deployments/setting-up-alerts` to
`/../../alerts` and adds redirects
- Updates links to ^
- Adds dedicated pages for notification services: Email, MS Teams, and
Slack
- Moves setup instructions for alert policies to their own pages: one
for the UI, the other for the CLI
- Updates sidenav to match new pages
- Adds an **Alerts** section to `/dagster-cloud` and
`/dagster-cloud/managing-deployments`

## How I Tested These Changes

Testing in Cloud, 👀
  • Loading branch information
erinkcochran87 authored Mar 19, 2024
1 parent d4618b0 commit 9cc20e5
Show file tree
Hide file tree
Showing 26 changed files with 972 additions and 277 deletions.
27 changes: 26 additions & 1 deletion docs/content/_navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,32 @@
},
{
"title": "Alerts",
"path": "/dagster-cloud/managing-deployments/setting-up-alerts"
"children": [
{
"title": "Overview",
"path": "/dagster-cloud/managing-deployments/alerts"
},
{
"title": "Managing alerts in the UI",
"path": "/dagster-cloud/managing-deployments/alerts/managing-alerts-in-ui"
},
{
"title": "Managing alerts with the CLI",
"path": "/dagster-cloud/managing-deployments/alerts/managing-alerts-cli"
},
{
"title": "Email",
"path": "/dagster-cloud/managing-deployments/alerts/email"
},
{
"title": "Microsoft Teams",
"path": "/dagster-cloud/managing-deployments/alerts/microsoft-teams"
},
{
"title": "Slack",
"path": "/dagster-cloud/managing-deployments/alerts/slack"
}
]
},
{
"title": "Environment variables & secrets",
Expand Down
2 changes: 1 addition & 1 deletion docs/content/concepts/assets/asset-checks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ defs = Definitions(

## Alerting (Dagster Cloud)

You can configure alerts on asset checks using [asset based alert policies](/dagster-cloud/managing-deployments/setting-up-alerts).
You can configure alerts on asset checks using [asset based alert policies](/dagster-cloud/managing-deployments/alerts).

---

Expand Down
2 changes: 1 addition & 1 deletion docs/content/concepts/webserver/ui.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ height={1016}

#### Alerts tab

- **Description**: The **Alerts** tab contains information about the alert policies configured for a Dagster Cloud deployment. Refer to the [Setting up alerts guide](/dagster-cloud/managing-deployments/setting-up-alerts) for more info.
- **Description**: The **Alerts** tab contains information about the alert policies configured for a Dagster Cloud deployment. Refer to the [Dagster Cloud alerts guide](/dagster-cloud/managing-deployments/alerts) for more info.
- **Accessed by**: On the [**Deployment overview**](#code-locations-tab) page, clicking the **Alerts** tab

<!-- ![UI Cloud Deployment - Alerts tab](/images/concepts/webserver/deployment-cloud-alerts-tab.png) -->
Expand Down
33 changes: 29 additions & 4 deletions docs/content/dagster-cloud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ Learn how to deploy your code to Dagster Cloud, use command line tools, set up C
title="Deployment settings reference"
href="/dagster-cloud/managing-deployments/deployment-settings-reference"
></ArticleListItem>
<ArticleListItem
title="Setting up alerts"
href="dagster-cloud/managing-deployments/setting-up-alerts"
></ArticleListItem>
<ArticleListItem
title="Adding and managing code locations"
href="/dagster-cloud/managing-deployments/code-locations"
Expand All @@ -133,6 +129,35 @@ Learn how to deploy your code to Dagster Cloud, use command line tools, set up C
></ArticleListItem>
</ArticleList>

### Alerts

<ArticleList>
<ArticleListItem
title="Alerting overview"
href="dagster-cloud/managing-deployments/alerts"
></ArticleListItem>
<ArticleListItem
title="Managing alerts in Dagster Cloud"
href="dagster-cloud/managing-deployments/alerts/managing-alerts-in-ui"
></ArticleListItem>
<ArticleListItem
title="Managing alerts using the dagster-cloud CLI"
href="dagster-cloud/managing-deployments/alerts/managing-alerts-cli"
></ArticleListItem>
<ArticleListItem
title="Email alerts"
href="dagster-cloud/managing-deployments/alerts/email"
></ArticleListItem>
<ArticleListItem
title="Microsoft Teams alerts"
href="dagster-cloud/managing-deployments/alerts/microsoft-teams"
></ArticleListItem>
<ArticleListItem
title="Slack alerts"
href="dagster-cloud/managing-deployments/alerts/slack"
></ArticleListItem>
</ArticleList>

### Environment variables and secrets

<ArticleList>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -693,10 +693,7 @@ Team management is accessed in the UI by navigating to **user menu (your icon) >
<tbody>
<tr>
<td>
Manage{" "}
<a href="/dagster-cloud/managing-deployments/setting-up-alerts">
alerts
</a>
Manage <a href="/dagster-cloud/managing-deployments/alerts">alerts</a>
</td>
<td className="bg-red-50">❌</td>
<td className="bg-red-50">❌</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/content/dagster-cloud/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -476,5 +476,5 @@ From here, you can:

- [Invite your team](/dagster-cloud/account/managing-users)
- [Configure authentication for your account](/dagster-cloud/account/authentication)
- [Set up monitoring and alerting](/dagster-cloud/managing-deployments/setting-up-alerts)
- [Set up monitoring and alerting](/dagster-cloud/managing-deployments/alerts)
- [Learn more setting up CI using Branch Deployments](/dagster-cloud/managing-deployments/branch-deployments)
35 changes: 31 additions & 4 deletions docs/content/dagster-cloud/managing-deployments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ Learn how to deploy your code to Dagster Cloud, use command line tools, set up C
title="Deployment settings reference"
href="/dagster-cloud/managing-deployments/deployment-settings-reference"
></ArticleListItem>
<ArticleListItem
title="Setting up alerts"
href="dagster-cloud/managing-deployments/setting-up-alerts"
></ArticleListItem>
<ArticleListItem
title="Adding and managing code locations"
href="/dagster-cloud/managing-deployments/code-locations"
Expand All @@ -31,6 +27,37 @@ Learn how to deploy your code to Dagster Cloud, use command line tools, set up C

---

## Alerts

<ArticleList>
<ArticleListItem
title="Alerting overview"
href="dagster-cloud/managing-deployments/alerts"
></ArticleListItem>
<ArticleListItem
title="Managing alerts in Dagster Cloud"
href="dagster-cloud/managing-deployments/alerts/managing-alerts-in-ui"
></ArticleListItem>
<ArticleListItem
title="Managing alerts using the dagster-cloud CLI"
href="dagster-cloud/managing-deployments/alerts/managing-alerts-cli"
></ArticleListItem>
<ArticleListItem
title="Email alerts"
href="dagster-cloud/managing-deployments/alerts/email"
></ArticleListItem>
<ArticleListItem
title="Microsoft Teams alerts"
href="dagster-cloud/managing-deployments/alerts/microsoft-teams"
></ArticleListItem>
<ArticleListItem
title="Slack alerts"
href="dagster-cloud/managing-deployments/alerts/slack"
></ArticleListItem>
</ArticleList>

---

## Environment variables and secrets

<ArticleList>
Expand Down
154 changes: 154 additions & 0 deletions docs/content/dagster-cloud/managing-deployments/alerts.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
---
title: "Dagster Cloud alerts | Dagster Docs"
description: "Create and configure alerts in Dagster Cloud."

platform_type: "cloud"
feature: "alerting"
---

# Dagster Cloud alerts

<ApplicableDagsterProduct />

Using Dagster Cloud's built-in alerting system, you can stay in the loop on the events occurring in your deployment. Dagster Cloud alerts integrate with several popular services, allowing you to deliver notifications when and where they're most needed.

---

## How it works

Alerts are created using **alert policies**. An alert policy defines [the conditions that will trigger an alert](#alert-policy-types) and [how the alert will be sent](#supported-notification-services). For example, you can create a policy that sends an alert to a Slack channel when any asset in a specific asset group fails to materialize.

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.

### Alert policy types

<table
className="table"
style={{
width: "100%",
}}
>
<thead>
<tr>
<th
style={{
width: "25%",
}}
>
Policy type
</th>
<th>How it works</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<strong>Asset alert</strong>
</td>
<td>
Triggers on:
<ul>
<li>
<strong>Asset materializations</strong> - Failure or success
</li>
<li>
<strong>Asset checks</strong> - Error, warn, passed, or failure to
execute
</li>
<li>
<strong>Asset freshness</strong> - Overdue
</li>
</ul>
Alerts can be scoped to asset groups or specific asset keys. Asset check
alerts are sent for any checks on those assets.
</td>
</tr>
<tr>
<td>
<strong>Run alert</strong>
</td>
<td>
Triggers on job run success or failure; may optionally include a set of
configured tags. If an alert policy has no configured tags, all jobs
will be eligible for that alert. Otherwise, only jobs that contain all
the tags for a given alert policy are eligible for that alert.
</td>
</tr>
<tr>
<td>
<strong>Schedule/Sensor alert</strong>
</td>
<td>
Triggers when a schedule or sensor tick failure occurs for any schedule
or sensor in the deployment. <strong>Note</strong>: Alerts are sent only
when the schedule/sensor changes from <strong>success</strong> to{" "}
<strong>failure</strong>, so subsequent failures won't trigger new
alerts.
</td>
</tr>
<tr>
<td>
<strong>Code location error alert</strong>
</td>
<td>Triggers when a code location fails to load due to an error.</td>
</tr>
<tr>
<td>
<strong>Agent downtime alert</strong>
</td>
<td>
Triggers when a Hybrid agent hasn't heartbeated within the last five
minutes. Available for{" "}
<a href="/dagster-cloud/deployment/hybrid">Hybrid deployments</a> only.
</td>
</tr>
</tbody>
</table>

### Supported notification services

Dagster Cloud can send notifications via:

- [Email](/dagster-cloud/managing-deployments/alerts/email)
- [Microsoft Teams](/dagster-cloud/managing-deployments/alerts/microsoft-teams)
- [Slack](/dagster-cloud/managing-deployments/alerts/slack)

---

## Managing alert policies

Managing alert policies can be accomplished by using:

- [The Dagster Cloud UI](/dagster-cloud/managing-deployments/alerts/managing-alerts-in-ui)
- [The `dagster-cloud` command-line interface (CLI)](/dagster-cloud/managing-deployments/alerts/managing-alerts-cli)

---

## Related

<ArticleList>
<ArticleListItem
title="Managing alerts in the Dagster UI"
href="/dagster-cloud/managing-deployments/alerts/managing-alerts-in-ui"
></ArticleListItem>
<ArticleListItem
title="Managing alerts using the dagster-cloud CLI"
href="/dagster-cloud/managing-deployments/alerts/managing-alerts-cli"
></ArticleListItem>
<ArticleListItem
title="Managing code locations"
href="/dagster-cloud/managing-deployments/code-locations"
></ArticleListItem>
<ArticleListItem
title="Deployment settings"
href="/dagster-cloud/managing-deployments/deployment-settings-reference"
></ArticleListItem>
<ArticleListItem
title="dagster-cloud CLI"
href="/dagster-cloud/managing-deployments/dagster-cloud-cli"
></ArticleListItem>
<ArticleListItem
title="dagster_cloud.yaml"
href="/dagster-cloud/managing-deployments/dagster-cloud-yaml"
></ArticleListItem>
</ArticleList>
Loading

1 comment on commit 9cc20e5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for dagster-docs ready!

✅ Preview
https://dagster-docs-mgeu46xfr-elementl.vercel.app
https://master.dagster.dagster-docs.io

Built with commit 9cc20e5.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.