Command Palette

Search for a command to run...

Назад к скиллам
скилл № 84467

dd-pagerduty-onboarding

Connects PagerDuty to Datadog so Datadog monitors can trigger and resolve incidents on the user's PagerDuty services. Checks which PagerDuty services are…

БесплатноЗапускает вложенные скрипты
datadog-labsот datadog-labs★ 188 звёзд на GitHub

Установить dd-pagerduty-onboarding в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

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.

Script exit codes (every subcommand): 0 success · 1 error — relay the error: line · 2 an expected "not yet" outcome (services: nothing connected; wait: timed out; test-page: a step did not happen) · 3 authorize --open could not open a browser.

Checklist:

  • 0. pup, python3 present; site confirmed; pup auth status authenticated on the right org
  • 1. services → none connected, or the user chose "continue"
  • 2. authorize [--continue] --open → install screen open
  • 3. wait started in the background immediately → new service reported
  • 4. Test page: asked; sent or skipped → result reported
  • 5. Final message sent

Phase 0: Preflight

Datadog for Government is not supported. If pup auth status reports a ddog-gov.com site, stop and tell the user to set up the integration from the Datadog app instead. The script refuses Government sites too.

Tools. pup and python3 are required; a browser is needed to finish PagerDuty's install screen:

command -v pup     >/dev/null 2>&1 && echo "pup: available"     || echo "MISSING pup"
command -v python3 >/dev/null 2>&1 && echo "python3: available" || echo "MISSING python3 - the setup script needs it"

If pup is missing, ask before installing it: brew tap datadog-labs/pack && brew install datadog-labs/pack/pup (macOS or Linux with Homebrew), curl -fsSL https://raw.githubusercontent.com/DataDog/pup/main/install.sh | sh, or npm install -g @datadog/pup (Windows or anywhere with npm); see https://github.com/DataDog/pup. Then run DD_SITE=<site> pup auth login.

If python3 is missing or the user declines installing pup, stop and point them to the PagerDuty integration tile in the Datadog app to connect it manually.

Session and site. The flow runs on the user's default pup session: the Datadog org is whichever one that session's OAuth token belongs to, and the site comes from DD_SITE (the script has no site flag; it reads the site from that session). Use no named (--org) sessions — one default session means every command, including any pup command handed back to the user, hits the same org.

DD_SITE=<site> pup auth status
  • Ask which Datadog site they use if it is not already known (e.g. datadoghq.com, datadoghq.eu, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, or staging datad0g.com). Never guess a site.
  • authenticated: true → confirm with the user, with the host's native selector, that this session is logged into the Datadog org they want to connect PagerDuty to. Yes → continue. No → have them log in again (next bullet) and pick the right org.
  • authenticated: false, or the wrong org → stop and ask them to run DD_SITE=<site> pup auth login (it needs a browser) and pick the org they want on Datadog's login screen — that makes it the default session's org. Warn them first if they were already logged in: this replaces their existing default pup session.
  • Prefix every command in this flow with DD_SITE=<site> (each shell command starts fresh, so it does not carry over on its own). The script resolves the site from pup auth status, which reads it.
  • pup returns non-JSON → the pup on PATH may not be the Datadog CLI (e.g. a same-named proto tool shadowing it). Point the script at the real binary with --pup <path-to-pup>, and pass it to every script command.

Permissions. The pup session needs the Integrations Manage (manage_integrations) permission on the Datadog org — it is what authorizes the connect. It sits on the default Datadog Standard Role; an org admin grants it through RBAC. The related Integrations Read (integrations_read) is view-only and is not sufficient. test-page also needs Monitors Write (monitors_write), because it creates a throwaway monitor; w

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • scripts/pagerduty_setup.py

FAQ

Что делает скилл dd-pagerduty-onboarding?

Connects PagerDuty to Datadog so Datadog monitors can trigger and resolve incidents on the user's PagerDuty services. Checks which PagerDuty services are already connected first and asks whether to continue; the user picks the services to connect on PagerDuty's own install screen, the skill confirms they landed, and it can send a test page that opens and resolves a real incident. Use when the user wants PagerDuty alerts/notifications from Datadog, or asks to connect or configure the Datadog PagerDuty integration.

Как установить скилл dd-pagerduty-onboarding?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dd-pagerduty-onboarding запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить dd-pagerduty-onboarding с