Sazabi
Integrations

PagerDuty

Connect PagerDuty so Sazabi can route issues to your services as PagerDuty alerts.

About

Connecting PagerDuty lets Sazabi route issues to your PagerDuty services so they page the right on-call responders. PagerDuty is an incident integration and a shared notification channel.

Sazabi triggers and resolves PagerDuty alerts as an issue opens and closes, so a resolved issue clears its PagerDuty alert.

Prerequisites

  • A PagerDuty account and a REST API token.
  • Organization admin access in Sazabi.

Set up in the dashboard

Create a PagerDuty REST API token

In PagerDuty, create a REST API token. Copy it.

Enter the API token

Paste the token and connect. Sazabi uses it to discover your PagerDuty services so you can route issues to a specific service.

Add a delivery rule

On the project Settings > Notifications page, add a delivery rule that routes an event type (for example Issue triggered) to a PagerDuty destination. See Route notifications.

Set up with the CLI

You can also connect PagerDuty with the Sazabi CLI (installed and authenticated — see CLI reference).

PagerDuty is an API-key provider, so pass its REST API token as the apiToken credential. Read the key from an environment variable rather than pasting it inline:

export PAGERDUTY_API_TOKEN=...   # your PagerDuty REST API token
sazabi integrations connect pagerduty \
  --credentials "{\"apiToken\":\"$PAGERDUTY_API_TOKEN\"}"

Then add a delivery rule so issues reach PagerDuty — from the project Settings > Notifications page, or with the CLI (sazabi notifications delivery-rules create; see Route notifications). Run sazabi integrations list to confirm the connection, or sazabi integrations providers --json to see each provider's credential fields.

Notifications

Use PagerDuty as a delivery destination for issue and system events: on the project Settings > Notifications page, add a delivery rule that routes an event type to a PagerDuty destination. See Route notifications.

Incidents

Sazabi opens and resolves PagerDuty alerts as issues fire and clear, so a problem routes to whoever is on call and the alert closes when the issue resolves; Sazabi can also acknowledge an alert and escalate it along your PagerDuty escalation policy. Route issues to PagerDuty with a delivery rule — see Route notifications.

Verify

With a delivery rule pointing at a PagerDuty destination, trigger a test issue (for example sazabi issues create --sample, or re-open a test issue) and confirm a PagerDuty alert appears on the target service within a minute. Resolve the issue and confirm the PagerDuty alert clears.

Troubleshooting

No alert on the service — Confirm a delivery rule names both the event type and the PagerDuty destination, and that no severity or component condition excludes the issue.

Connection shows needs attention — The REST API token may have been revoked. Create a new token in PagerDuty and reconnect.

Further reading