What HealOps fetches
Prerequisites
- A PagerDuty account with REST API v2 access
- A PagerDuty API key (User token or service account) with at minimum Read access
Creating an API key
- Log into PagerDuty → User Icon → My Profile → User Settings → Create API User Token
- Give the token a descriptive name (e.g.
healops-readonly) - Copy the token — it is only shown once
Setup
Option 1: Interactive CLI
Option 2: Environment variables
Add to your.env:
Option 3: Persistent store
Verify
passed and confirms the API key is accepted.
Tool reference
pagerduty_incidents
Lists or searches PagerDuty incidents. Optionally fetches full detail and timeline log entries for a specific incident.
Example: all triggered incidents
Example: full detail for a specific incident
pagerduty_oncall
Returns the current on-call roster, optionally filtered by escalation policy or schedule.
Example: on-call for a specific policy
RCA integration
When PagerDuty is configured, the investigation pipeline automatically:- Fetches the currently triggered/acknowledged incidents to establish incident context
- Fetches the on-call schedule to identify who is responsible for the affected service
- Includes incident timeline log entries in the RCA summary
Troubleshooting
auth_error — The API key is invalid or has been revoked. Generate a new token in PagerDuty and update your .env.
HTTP 403 — Your API key lacks the required scope. Ensure the token has at minimum Read access to Incidents and On-Call data.
Empty incident list — If no incidents are returned, check that your statuses filter matches what is in PagerDuty and that the since/until time range covers the window you expect.
Tracer