PagerDuty Integration
Connect Pulsar to PagerDuty for on-call alerting and incident management.
Setup
Step 1: Create a PagerDuty Service
- Log in to PagerDuty
- Go to Services → Service Directory
- Click New Service
- Configure the service:
- Name: "Pulsar Monitoring"
- Integration: Select Events API v2
- Copy the Integration Key
Step 2: Create the channel in Pulsar
- Go to Settings → Notification Channels → Create Channel
- Enter a Channel Name (for example "On-Call PagerDuty")
- Set Channel Type to PagerDuty
- Paste the key into Integration Key
- Click Create
Step 3: Link the channel to your sites
A channel sends nothing until it is attached to a site. Open the site in Pulsar, click Link Channel in the Notification Channels card and pick the channel. Repeat for every site that should alert there. Use the Test action on the channel row in Settings to send a test message.
How It Works
Pulsar integrates with PagerDuty Events API v2:
| Pulsar Event | PagerDuty Action |
|---|---|
| Site goes down | Creates incident (trigger) |
| Site recovers | Resolves incident |
Incident Details
When Pulsar creates a PagerDuty incident, it includes:
- Summary - Site name and error type
- Severity - Based on alert type (critical for down, warning for degraded)
- Source - Pulsar monitoring
- Custom details - Response time, status code, error message
Escalation Policies
PagerDuty handles escalation based on your configured policies:
- Initial notification to on-call responder
- Escalation if not acknowledged
- Additional escalations as configured
Best Practices
Service Configuration
- Dedicated service - Create a separate service for Pulsar alerts
- Appropriate urgency - Set urgency based on site criticality
- Escalation policy - Configure escalation for unacknowledged alerts
Alert Routing
Consider creating multiple services for different severity levels:
| Service | Alert Types |
|---|---|
| Pulsar Critical | Site down, checkout failures |
| Pulsar Warning | Degraded performance, JS errors |
Troubleshooting
Incidents Not Creating
- Verify the Integration Key is correct
- Check PagerDuty service is active
- Ensure the service isn't in maintenance mode
- Send a Test from the channel row in Settings
Incidents Not Resolving
- Check that the same Integration Key is used
- Verify PagerDuty's Events API is receiving resolve events
- Check for deduplication key mismatches
Rate Limits
PagerDuty has rate limits on the Events API:
- 120 events per minute per integration key
- Pulsar batches events to stay within limits