Dagster Integration:
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
import dagster as dg
from dagster_pagerduty import PagerDutyService
@dg.asset
def pagerduty_alert(pagerduty: PagerDutyService):
pagerduty.EventV2_create(
summary="alert from dagster",
source="localhost",
severity="error",
event_action="trigger",
)
defs = dg.Definitions(
assets=[pagerduty_alert],
resources={
"pagerduty": PagerDutyService(routing_key="0123456789abcdef0123456789abcdef")
},
)
About PagerDuty
Pagerduty is a popular SaaS incident response platform. It integrates machine data & human intelligence to improve visibility & agility for Real-Time Operations.