PagerDuty Integration Guide
Send incident alerts through webhooks.
Configure PagerDuty to send webhook notifications to Harness AI SRE when incidents are created, updated, or resolved.
Before you begin
Harness webhook endpoint: Create a PagerDuty webhook in Harness AI SRE using the PagerDuty webhook template.
PagerDuty permissions: Admin or Account Owner role (for V3 webhooks) or Service permissions (for extensions).
Webhook URL: Copy the webhook URL from your Harness webhook configuration.
PagerDuty V3 webhooks documentation: Go to PagerDuty V3 Webhooks Overview to understand V3 webhook capabilities and event types.
Webhook extensions documentation: Go to PagerDuty Webhooks for legacy webhook extension setup.
Choose webhook type
PagerDuty offers two webhook mechanisms:
V3 Webhooks (Recommended)
Account, team, or service
Enterprise-wide incident synchronization
High (supports filtering, custom headers)
Webhook Extensions (Legacy)
Service-level
Simple service-specific integration
Limited
Go to Configure V3 webhooks to use the recommended approach.
Go to Configure webhook extensions to use the legacy method.
Configure V3 webhooks
V3 webhooks are the recommended approach for modern PagerDuty integrations.
Create a V3 webhook
Start a new V3 webhook in PagerDuty:
In PagerDuty, navigate to Integrations, then select Generic Webhooks (v3)
Click New Webhook
Configure webhook settings
Configure these fields:
Webhook URL: Your Harness webhook URL
Scope Type: Select the scope
Account: All incidents across the account
Team: Incidents for specific teams
Service: Incidents for specific services
Description:
Harness AI SRE Integration
Configure custom headers
Add custom headers if your Harness webhook requires authentication:
Select event subscriptions
Choose which incident events trigger the webhook:
Select all event types:
incident.triggeredincident.acknowledgedincident.escalatedincident.resolvedincident.reassignedincident.annotatedincident.priority_updatedincident.reopenedincident.delegatedincident.unacknowledgedincident.responder.addedincident.responder.repliedincident.status_update_published
Select only high-priority events:
incident.triggeredincident.escalatedincident.resolved
Track incident lifecycle:
incident.triggeredincident.acknowledgedincident.resolved
Configure event filters
Add filters to control when the webhook fires:
Service: Select specific services or "All"
Urgency: High, low, or both
Priority: Filter by incident priority (P1-P5)
Save the webhook
Click Save to create the V3 webhook.
Configure webhook extensions (legacy)
Webhook extensions are simpler but less flexible than V3 webhooks.
Add webhook extension to service
Add a generic webhook integration to the service:
Navigate to Services, then select your service
Select the Integrations tab
Click Add Integration
Select Generic Webhook
Configure the extension
Set the extension name, URL, and description:
Name:
Harness AI SREURL: Your Harness webhook URL
Description:
Send incidents to Harness AI SRE
Save the extension
Click Add Integration to save.
Configure field mapping in Harness
In your Harness webhook configuration, map the PagerDuty payload fields to alert properties.
PagerDuty V3 webhook payload structure
V3 webhooks send a standardized payload:
Map basic fields
Use Mustache templates for simple mapping:
Advanced field mapping with CEL
Use CEL for conditional logic and nested field access:
Test the integration
Test V3 webhook
Send a test event from the V3 webhook:
In PagerDuty, go to Integrations, then select Generic Webhooks (v3)
Find your webhook and click Test Webhook
Select a test scenario
Click Send Test
Test webhook extension
Trigger a test incident on the integrated service:
Create a test incident in the integrated service
Verify the webhook fires (check service integration logs)
Verify in Harness
Confirm the incident arrived and mapped correctly:
Navigate to Alerts in Harness AI SRE
Check that the test alert appears
Verify field mapping:
Alert title matches incident title
Severity is mapped correctly
Tags include incident metadata
Link navigates to PagerDuty incident
Available PagerDuty event types
V3 webhooks support these incident event types:
incident.triggered
New incident created
Initial alert processing and investigation
incident.acknowledged
Incident acknowledged by responder
Update alert status, notify team
incident.escalated
Incident escalated to next level
Increase priority, involve specialists
incident.resolved
Incident marked as resolved
Close alert, trigger post-incident analysis
incident.reassigned
Incident reassigned to different responder
Update assignee, transfer context
incident.annotated
Note added to incident
Process additional context
incident.priority_updated
Incident priority changed
Adjust alert severity
incident.reopened
Resolved incident reopened
Reopen alert, resume investigation
incident.delegated
Incident delegated to another escalation policy
Update ownership, notify new team
incident.unacknowledged
Incident automatically unacknowledged after timeout
Re-trigger alert notification
incident.responder.added
Responder added to incident
Update assignee list, notify responder
incident.responder.replied
Responder replied to a responder request
Log responder response
incident.status_update_published
Status update posted to incident
Sync status notes to alert
Advanced configuration
Route by event type
Create separate Harness webhooks for different incident events:
PagerDuty webhook 1:
Event types:
incident.triggeredHarness webhook:
wh_new_incidents
Harness field mapping:
PagerDuty webhook 2:
Event types:
incident.resolvedHarness webhook:
wh_resolutions
Harness field mapping:
Filter by service
Use CEL to filter incidents from specific services:
Filter by urgency
Process only high-urgency incidents:
Enrich with custom fields
Add custom context to help Harness AI agent investigation:
Troubleshooting
Example: complete integration
This example shows a production-ready PagerDuty-to-Harness integration for incident synchronization.
PagerDuty V3 webhook configuration
Configure the V3 webhook with these settings:
Scope: Account (all services)
Event types:
incident.triggered,incident.escalated,incident.resolvedFilters:
Urgency: High only
Services: All
Map fields in the Harness webhook
CEL helper for assignee
Next steps
Route alerts: Route and deduplicate PagerDuty incidents.
Use CEL in webhooks: Add advanced filtering and transformation logic.
AI agent: Enable automated incident investigation.
Related documentation
PagerDuty official documentation
V3 webhooks overview: Complete guide to PagerDuty V3 webhooks, event types, and configuration.
Webhook extensions: Legacy webhook extension setup and service-level configuration.
Webhook behavior: Webhook payload structure, event types, and field definitions.
Incidents API: Incident object structure and field reference.
Last updated
Was this helpful?