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: Add to Pulsar
- Go to Settings in Pulsar
- Find the PagerDuty section
- Paste your Integration Key
- Click Test to verify
- Click Save
How It Works
Pulsar integrates with PagerDuty Events API v2:
| Pulsar Event | PagerDuty Action |
|---|---|
| Site goes down | Creates incident (trigger) |
| Site recovers | Resolves incident |
| Alert acknowledged | Updates 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
- Test with the Test button in Pulsar 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