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 pagerduty_resource
from dagster import op, job
@op(required_resource_keys={'pagerduty'})
def my_op(context):
context.resources.pagerduty.EventV2_create(
summary='alert from dagster',
source='localhost',
severity='error',
event_action='trigger',
)
@job(resource_defs={
'pagerduty': pagerduty_resource.configured({
'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.