Skip to main content
Upcoming Webinar:

Getting Started with OpenObserve.

December 03, 2026.
11:00 AM ET.
Register

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

Manas Sharma
Manas Sharma.
March 21, 2025.
4 min read.
Don't forget to share!
TwitterLinkedInFacebook

Ready to get started?

Try OpenObserve Cloud today for more efficient and performant observability.

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

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

  1. Log in to your PagerDuty account.
  2. 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.

Screenshot 2025-03-21 at 4.32.37 PM.png

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

Screenshot 2025-03-21 at 4.33.05 PM.png

  • Click "Create Service".
  1. 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.

Screenshot 2025-03-21 at 4.44.21 PM.png

Step 2: Creating the Alert Template in OpenObserve

  1. Log in to your OpenObserve console.
  2. Go to "Management" → "Templates".
  3. Click "Add Template".
  4. 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}"
}
  1. Replace YOUR_INTEGRATION_KEY_HERE with the Integration Key you copied from PagerDuty.
  2. Save the template.

Screenshot 2025-03-21 at 4.39.27 PM.png

Step 3: Configuring OpenObserve Alert Destination

  1. In OpenObserve, go to "Management" → "Alert Destinations".
  2. Click "Add Destination".
  3. 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-Type and value application/json.
    • Template: Select the PagerDuty Events API v2 template we created earlier.
  4. Save the destination.

Screenshot 2025-03-21 at 4.40.13 PM.png

Step 4: Creating an Alert Rule

  1. Go to "Alerts" → "Add Alert".
  2. Configure your alert: Screenshot 2025-03-21 at 4.23.40 PM.png.
  3. Save the alert rule.

Step 5: Testing the Integration

  1. Trigger a test alert:.
    • You can wait for your alert condition to be met. Or trigger it manually to test.
  2. Check PagerDuty:.
    • Log in to your PagerDuty account.
    • Go to "Incidents".
    • You should see a new incident with the details from your OpenObserve alert.

Screenshot 2025-03-21 at 4.24.16 PM.png

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

Screenshot 2025-03-21 at 4.24.42 PM.png

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

Manas Sharma

Manas Sharma

TwitterLinkedIn

Manas is a passionate Dev and Cloud Advocate with a strong focus on cloud-native technologies, including observability, cloud, kubernetes, and opensource. building bridges between tech and community.

Follow OpenObserve on Google

Add OpenObserve as a preferred source to see more of our articles in Google Search and Top Stories.

Latest From Our Blogs

View all posts