Ask AI

PagerDuty & Dagster+#

This guide focuses on a Dagster+ feature. A Pro plan is required to use this feature.

Dagster+ supports sending alerts to PagerDuty, which will automatically create a PagerDuty incident.


PagerDuty & Dagster+ integration benefits#

  • Empower your team with real-time incident response by integrating Dagster+ and PagerDuty
  • Notify on-call responders when alerts are triggered in Dagster+
  • Dramatically reduce downtime for issues related to asset materialization, asset checks, job runs, schedules, sensors, and code locations
  • Customize the urgency and routing of PagerDuty incidents based on the content of the Dagster+ event payload

How it works#

  • Events that trigger an alert in Dagster+ will automatically create a PagerDuty incident
  • Incidents can be triggered for events related to runs, assets, schedules, sensors, and code locations
  • Users must resolve incidents in PagerDuty. Dagster+ doesn't currently automatically resolve incidents.

Requirements#

To integrate PagerDuty with Dagster+, you'll need:

  • Permissions in PagerDuty that allow you to manage services and integrations. Refer to PagerDuty's User roles documentation for more information.
  • The following in Dagster+:
    • A Pro plan
    • Organization, Admin, or Editor permissions, which are required to create and manage alerts

Integration walkthrough#

In PagerDuty#

  1. From the Configuration menu, click Services > Service Directory.

  2. There are two ways to add an integration to a service:

    • If adding your integration to an existing service: Click the name of the service you want to add the integration to. Then, select the Integrations tab and click the New Integration button.

    • If creating a new service for your integration: Refer to PagerDuty's Configuring services and integrations documentation and follow the steps outlined in the Create a new service section, selecting Dagster+ as the Integration Type in step 4. Continue with the In Dagster+ section (below) once finished.

  3. Enter an Integration Name in the format monitoring-tool-service-name (e.g. dagster-plus-run-failures) and select Dagster+ from the Integration Type menu.

  4. Click the Add Integration button to save your new integration. You will be redirected to the Integrations tab for your service.

  5. An Integration Key will be generated on this screen. Keep this key saved in a safe place, as it will be used when you configure the integration with Dagster+ in the next section.

    Highlighted integration key field in the PagerDuty UI

In Dagster+#

Creating an alert policy can be done using the Dagster+ UI or in code.

In the UI#

  1. Sign into your Dagster+ account.

  2. Create and configure an alert policy as per the alert policy documentation.

  3. In the Notification Service section of the Create alert policy window:

    1. Select PagerDuty.
    2. In the field that displays, paste the PagerDuty integration key you created in the previous section.
  4. Click Save policy.


Uninstalling PagerDuty#

To uninstall PagerDuty, click the Delete button next to the policy. When prompted, confirm the deletion.