How to Configure PagerDuty with OpenObserve Alerts: A Step-by-Step Guide

Ready to get started?
Try OpenObserve Cloud today for more efficient and performant observability.
Introduction
When systems fail, every minute counts. That's why incident management tools like PagerDuty have become essential for modern DevOps and SRE teams.
PagerDuty is a leading incident response platform. It makes sure the right people hear about critical issues. When you connect OpenObserve with PagerDuty, you can:.
- Create incidents from OpenObserve alerts automatically.
- Route notifications to the right teams based on escalation policies.
- Reduce mean time to resolution (MTTR) with faster incident response.
- Keep a full incident history for post-mortem analysis.
In this guide, we'll show you how to set up PagerDuty to receive alert notifications from OpenObserve. That way, your team hears about issues quickly.
Prerequisites
Before we begin, make sure you have:.
- An OpenObserve instance up and running.
- A PagerDuty account with permissions to create services and integrations.
- Some basic familiarity with both platforms.
Step 1: Setting Up PagerDuty
- Log in to your PagerDuty account.
- Create a new service:.
- Go to "Services" → "Service Directory".
- Click "New Service".
- Enter a name for your service (e.g., "O2_Alert").
- Select an escalation policy. It decides who gets notified.

- Under "Integration Settings," select "PRTG Notification For PagerDuty Events API v2" as the Integration Type.

- Click "Create Service".
- Get your Integration Key:.
- After you create the service, PagerDuty opens the Integrations tab.
- Find the "Integration Key" (also called "routing key").
- Keep this key handy. You'll use it in the next steps.

Step 2: Creating the Alert Template in OpenObserve
- Log in to your OpenObserve console.
- Go to "Management" → "Templates".
- Click "Add Template".
- Configure the template:.
- Name: "pagerduty".
- Paste the following JSON template in the body:.
{
"payload": {
"summary": "{alert_name} - Alert Triggered",
"severity": "critical",
"source": "OpenObserve",
"component": "{stream_name}",
"custom_details": {
"organization": "{org_name}",
"alert_type": "{alert_type}",
"threshold": "{alert_threshold}",
"triggered_count": "{alert_count}",
"triggered_at": "{alert_trigger_time_str}",
"query": "{query}"
}
},
"routing_key": "YOUR_INTEGRATION_KEY_HERE",
"event_action": "trigger",
"dedup_key": "{alert_id}"
}
- Replace
YOUR_INTEGRATION_KEY_HEREwith the Integration Key you copied from PagerDuty. - Save the template.

Step 3: Configuring OpenObserve Alert Destination
- In OpenObserve, go to "Management" → "Alert Destinations".
- Click "Add Destination".
- Configure the webhook:.
- Select "Webhook" as the destination type.
- Name: "PagerDuty Alerts".
- URL:
https://events.pagerduty.com/v2/enqueue. - Method: POST.
- Headers:.
- Add a header with key
Content-Typeand valueapplication/json.
- Add a header with key
- Template: Select the
PagerDuty Events API v2template we created earlier.
- Save the destination.

Step 4: Creating an Alert Rule
- Go to "Alerts" → "Add Alert".
- Configure your alert:
. - Save the alert rule.
Step 5: Testing the Integration
- Trigger a test alert:.
- You can wait for your alert condition to be met. Or trigger it manually to test.
- Check PagerDuty:.
- Log in to your PagerDuty account.
- Go to "Incidents".
- You should see a new incident with the details from your OpenObserve alert.

- Verify the incident details:.
- The incident should contain all the information in your template.
- Check that the severity, source, and custom details show correctly.

Troubleshooting
If you're not seeing alerts in PagerDuty, check these common issues:.
- Verify your Integration Key: Make sure you've copied the correct key from PagerDuty.
- Test the webhook: Use a tool like Postman to test the PagerDuty Events API directly.
- Check alert conditions: Make sure your alert conditions are met, so notifications fire.
Conclusion
Congratulations! You've connected OpenObserve with PagerDuty. You now have a reliable incident management pipeline. It will help your team respond faster to critical issues.
PagerDuty is an excellent choice for incident management. But OpenObserve also lets you connect other notification platforms, based on what your team prefers. You can also configure OpenObserve alerts to work with popular services like Slack (check out our video tutorial), Microsoft Teams, or Opsgenie.
Each integration follows the same pattern as this guide: create a template, configure a destination, and set up alert rules. For a complete list of supported integrations and template examples, visit the OpenObserve Alert Templates documentation.
Choose the notification platform that best fits your team's workflow. Or use several destinations for different types of alerts. The right setup gets critical issues the attention they need. It also keeps less urgent matters from causing disruptions.
Happy monitoring!
About the Author
Follow OpenObserve on Google
Add OpenObserve as a preferred source to see more of our articles in Google Search and Top Stories.













