Skip to main content

PagerDuty Webhook

Receive PagerDuty incident notifications directly into NudgeBee. When an incident is triggered or resolved in PagerDuty, NudgeBee automatically creates or updates the corresponding event and triggers troubleshooting workflows.


Step 1: Create the Webhook in NudgeBee​

  1. Navigate to Integrations > Webhooks tab.
  2. Click the PagerDuty Webhook card.
  3. Fill in the configuration:
    • Integration Config Name — a descriptive name (e.g., PagerDuty Production).
    • Account — select the NudgeBee account to receive events.
  4. Click Save. NudgeBee generates a unique webhook URL in the format:
https://<your-nudgebee-domain>/api/webhooks/pagerduty?token=<generated-token>

Copy the URL exactly as the integration shows it. The path segment is the provider name — lowercase, no _webhook suffix — and nothing may follow it. pagerduty_webhook is the integration type NudgeBee stores internally, not a URL you can post to; a URL that does not match the route above is answered by the NudgeBee web app with a 404 and never reaches the alert pipeline.

  1. Copy the webhook URL — you will configure it in PagerDuty in the next step.

Step 2: Configure PagerDuty Webhook Subscription​

  1. In PagerDuty, navigate to Integrations > Generic Webhooks (V3).
  2. Click New Webhook.
  3. Fill in the webhook details:
    • Webhook URL: paste the NudgeBee webhook URL from Step 1.
    • Scope Type: select Account (to receive all incident events) or Service (to filter by specific services).
    • Events to Send: select the following event types:
      • incident.triggered
      • incident.resolved
  4. Click Add Webhook.
  5. Use the Send Test Event button to confirm delivery. PagerDuty reports 200 OK, but no event appears in NudgeBee — see the note below.
note

NudgeBee only processes incident.triggered and incident.resolved events. Other event types are accepted with 200 OK and recorded as skipped, not failed — they create no NudgeBee event. This includes incident.acknowledged, incident.annotated, and pagey.ping, which is what Send Test Event sends. A green test event therefore proves the URL and token are right; it does not produce an event. Trigger a real incident to see one.


How It Works​

When PagerDuty sends a webhook payload to NudgeBee, the following processing occurs:

State Mapping​

PagerDuty Event TypeNudgeBee Status
incident.triggeredFiring
incident.resolvedResolved

Priority Mapping​

NudgeBee reads the incident priority field first, falling back to urgency if priority is not set:

PagerDuty Priority / UrgencyNudgeBee Priority
P1, critical, highHigh
P2, P3, mediumMedium
P4, P5, lowLow

Automatic Enrichment​

If a PagerDuty ticket integration is also configured for the same account, NudgeBee automatically enriches each alert event with:

  1. Incident Details — title, description, service name, escalation policy, and assignments fetched from the PagerDuty API.
  2. Alert Labels — custom fields and CEF payload labels extracted from the incident body (supports Alertmanager, Grafana, SigNoz, Chronosphere, and Last9 alert sources).
  3. Dedup Key — extracted from the alert body for accurate event fingerprinting.

Event Deduplication​

Events are deduplicated using the PagerDuty webhook event ID (event.id). If PagerDuty sends a resolution webhook for the same incident, the existing NudgeBee event is updated to Resolved instead of creating a duplicate.


Account Mapping (Advanced)​

If you use multiple NudgeBee accounts and want to route PagerDuty incidents to different accounts based on alert labels, edit the saved integration and use the Account Mapping (Optional) section:

  1. Click + Add rule.
  2. Under WHEN, enter a Label name (for example env) and its Label value(s) (for example production). Separate several values with commas to match any of them. Conditions inside one rule must all match.
  3. Under THEN use account, pick the Account.

Rules are checked top to bottom and the first match wins. If no rule matches, the incident goes to the account selected on the form.


Verify the Integration​

  1. In PagerDuty, trigger a real incident on a monitored service. Send Test Event will not work here — it sends pagey.ping, which NudgeBee skips.
  2. In NudgeBee, navigate to Troubleshoot > All Events and verify the incident appears with:
    • Correct title and priority
    • Incident details evidence attached
    • Service name and labels populated (if PagerDuty ticket integration is configured)

Troubleshooting​

IssueResolution
Webhook URL returns HTTP 400 with webhook validation failedVerify the token query parameter in the URL is correct. Regenerate the integration if needed.
Events not appearingEnsure the PagerDuty webhook subscription is active and includes incident.triggered in the event types.
Enrichment labels missingEnsure a PagerDuty ticket integration is configured for the same NudgeBee account — this is required for API-based enrichment.
Acknowledged events not updatingExpected behavior — NudgeBee only processes triggered and resolved events. Acknowledgements do not update the NudgeBee event status.
Test event succeeds but no event appearsExpected behavior — Send Test Event sends pagey.ping, which NudgeBee skips. Trigger a real incident instead.
Webhook URL returns a 404 HTML pageThe path is wrong, so the request is reaching the NudgeBee web app instead of the alert pipeline. The correct path is /api/webhooks/pagerduty. Check that the URL uses https, is lowercase, has no _webhook suffix, and has nothing after pagerduty except the ?token= query. To avoid typos, copy the URL directly from the integration.