dd-pagerduty-onboarding
Datadog PagerDuty integration
Connect PagerDuty to Datadog in two user-driven moves: the install on PagerDuty's install screen (the user picks which PagerDuty service(s) to connect), and Datadog writing the integration keys as services when PagerDuty redirects back. Once a service is connected, Datadog can trigger and resolve incidents on it.
The install is the user's — this skill never installs on their behalf and never writes
credentials. All /api/ calls go through pup api with the user's own session; the
install-URL mint is the one call made outside pup api, and the script handles it (its
bearer stays in process memory only — never in argv, on disk, or in output).
scripts/pagerduty_setup.py owns site resolution, install-URL minting, service discovery,
and the API calls — do not reproduce that logic yourself. The API reference is
https://docs.datadoghq.com/api/latest/pagerduty-integration/.
This is a hands-on setup: run the commands yourself rather than handing the user a list, keep them in the loop, and let the user's answer decide whether an existing integration is extended.