Skip to main content

PagerDuty Integration

Trigger and auto-resolve PagerDuty incidents from NetBeez NextGen alerts, scheduled test alerts, and incidents using PagerDuty Events API v2.

Written by Panickos Neophytou

PagerDuty Integration connects NetBeez NextGen directly to the PagerDuty Events API v2 (https://events.pagerduty.com/v2/enqueue), automatically triggering PagerDuty incidents when NetBeez alerts or Incidents open and resolving the matching PagerDuty incident automatically when the condition clears.

In this article:

Step 1: Create an Events API v2 Integration Key in PagerDuty

  1. Sign in to PagerDuty and navigate to Services → Service Directory.

  2. Select an existing PagerDuty service (and open its Integrations tab → Add an integration) or click + New Service.

  3. Select Events API V2 as the integration type and save.

  4. Copy the 32-character hexadecimal Integration Key (Routing Key) displayed on the service's Integrations tab.

Step 2: Configure & Test PagerDuty in NetBeez Settings

Users with the Administrator role configure PagerDuty under Settings:

  1. Click Settings in the left navigation sidebar, expand Integrations & Notifications, and select Pagerduty (/settings/integrations/pagerduty).

  2. In the PagerDuty Configuration card, paste your 32-character hexadecimal key into Integration Key (stored encrypted once saved).

  3. Click Test before saving to verify your Integration Key against PagerDuty Events API v2:

    • NetBeez sends a real trigger event (summary: [TEST] NetBeez PagerDuty integration test) followed immediately by a matching resolve event using the same deduplication key—verifying end-to-end routing and auto-resolution without leaving an open test incident in PagerDuty.

    • Confirm the PagerDuty Test Succeeded toast banner appears.

  4. Click Apply Changes to save the Integration Key.

Settings Integrations & Notifications Pagerduty page showing Integration Key input, Test and Apply Changes buttons, and four-column Notifications card

Step 3: Enable Alert & Incident Notifications

  1. In the Notifications card, switch the top-right toggle to Enabled.

  2. Enable the desired event toggles across the four entity columns and click Save:

How Deduplication, Severity Mapping & Auto-Resolution Work

Every PagerDuty event includes structured custom_details, entity context, and clickable View in NetBeez links (suppressed automatically while Maintenance Mode is active):

Notification Type

PagerDuty dedup_key

Trigger & Auto-Resolve Behavior

Single Alerts

netbeez-alert-<alert_dedup_id>

Sends event_action: "trigger" when the alert opens (mapping NetBeez severity to PagerDuty critical, error, warning, or info) and sends event_action: "resolve" with the identical dedup_key when the alert clears.

Incidents

netbeez-incident-<incident_id>

Sends event_action: "trigger" (severity critical) on INCIDENT_OPEN and automatically sends event_action: "resolve" with the same dedup_key on INCIDENT_CLEARED.

Aggregate Alerts

Unique batch UUID per summary

Batched summary notifications send event_action: "trigger" with highest severity across open alerts in the batch (resolved manually in PagerDuty; use Single Alerts or Incidents when you want automatic 1-to-1 resolution).

Did this answer your question?