From the Configuration menu, click Services > Service Directory.
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.
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.
Click the Add Integration button to save your new integration. You will be redirected to the Integrations tab for your service.
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.
To define a PagerDuty alert policy in code, use the notification_service.pagerduty.integration_key key to provide the integration key. For example:
# alert_policies.yamlalert_policies:-name:"pagerduty-alert-policy"description:"An alert policy to create a PagerDuty incident upon job failure."tags:-key:"level"value:"critical"event_types:-"AGENT_UNAVAILABLE"notification_service:pagerduty:integration_key:"<pagerduty_integration_key>"
Then, use the dagster-cloud CLI to set the alert policies for the deployment:
dagster-cloud deployment alert-policies sync -a /path/to/alert_policies.yaml