PagerDuty | Dagster Integrations
Back to integrations
Dagster + Pagerduty

Dagster + Pagerduty

Centralize your monitoring with the dagster-pagerduty integration.

About this integration

This library provides an integration between Dagster and PagerDuty to support creating alerts from your Dagster code.

Installation

pip install dagster_pagerduty

Example

# Read the docs on Resources to learn more: https://docs.dagster.io/deployment/resources
from dagster_pagerduty import PagerDutyService
from dagster import op, job


@op
def my_op(pagerduty: PagerDutyService):
    pagerduty.EventV2_create(
        summary="alert from dagster",
        source="localhost",
        severity="error",
        event_action="trigger",
    )

@job(resource_defs={
    "pagerduty": PagerDutyService(
        routing_key="0123456789abcdef0123456789abcdef"
    )
})
def my_job():
    my_op()

About PagerDuty

Pagerduty is a popular SaaS incident response platform. It integrates machine data & human intelligence to improve visibility & agility for Real-Time Operations.