PagerDuty Integration

PagerDuty is an advanced alerts management tool that offers IT alerting, on-call scheduling, incident management, and escalation policies to rectify issues in your IT resources. You can seamlessly integrate with PagerDuty and manage Site24x7 alerts in PagerDuty to streamline your communication chain within teams, secure a lower mean time to resolution (MTTR) and finally achieve higher incident resolution efficiency. Site24x7 will be able to trigger, associate, and resolve incidents in PagerDuty. Existing users of PagerDuty can use this integration to consolidate how notifications and on-call support are handled. Site24x7 supports multiple Pager Duty integration in Site24x7. It lets you setup different escalation policies in PagerDuty and notify your relevant user groups in case of monitor outage. Site24x7 sends PagerDuty a trigger event to report a new or ongoing problem. When PagerDuty receives a trigger event, it will either open a new incident or append information to an existing incident. It's vital to track all incidents from Site24x7 in PagerDuty. Hence, when a trigger event fails to log an incident in PagerDuty service due to any service issue at PagerDuty's end, we constantly retry the trigger event once every minute over a period of five minutes to make sure all the triggered events are captured as incidents in PagerDuty.

Genarate PagerDuty Integration Key

A service in PagerDuty lets any application, service or team open incidents in PagerDuty. You can create a Site24x7 service in PagerDuty to trigger incidents in PagerDuty. To enable this, you must generate a PagerDuty integration key, though. Follow the steps below to generate an Integration Key:

  1. Login to your PagerDuty account.
  2. Click Configuration > Services > Add Service. The services view will open now.
  3. Click Add New Service button to add a new service in PagerDuty.
  4. In the Add Service window, specify the following details:
    • Name: Enter the name of the Service.
    • Description: Provide a short description about your service.
    • Integration Type: Under Integration settings > Integration Type, search and select Site24x7 from the available services.
    • Specify Incident Settings and Incident Behaviour.
    • Once done, click the Add Service button. A new Site24x7 service will be added in PagerDuty.
  5. Copy and retain the PagerDuty Integration Key displayed on your screen.
    The unique integration key shall be used to connect your Site24x7 account with PagerDuty.

    You can generate multiple integration keys in your PagerDuty account.

Integrate Site24x7 with PagerDuty

  1. Login to Site24x7.
  2. Click Admin > Third Party Integration > PagerDuty.
  3. Click on the PagerDuty ribbon to integrate your account with PagerDuty.
  4. Once the PagerDuty integration form opens, specify the following details in it:
    • Service NameEnter the name of your integration.
    • Sender NameEnter the name of the sender.
    • Integration Key: Paste the copied PagerDuty Integration Key here. Learn how to generate an Integration Key.  
    • Message TitleEnter the "$ symbol" and pick from available incident parameters to customize your message title for Site24x7 notifications. Learn more about incident parameters. You can also use Site24x7 global parameters to customize your message titles.
    • Trigger incidents when my monitor is in Critical status: Mark this toggle button to enable incident creation in PagerDuty when your monitor is in Critical status.
    • Trigger incidents when my monitor is in Trouble status: Mark this toggle button to enable incident creation in PagerDuty when your monitor is in Trouble status.
    • Manually close incidents when my monitor changes to "Up" status: Use the radio button to decide whether to close incidents manually or automatically in PagerDuty, when the Site24x7 monitor alert changes to "Up". By default, the incidents are resolved automatically in PagerDuty.
    • Select Integration level: Use the radio button to decide whether to create incidents in PagerDuty for your specific monitors, all monitors/monitor groups associated to selected tags or all monitors in your account.
      For tags associated to your monitor group that have monitors in parent level and a few monitors in sub group level, alerts from only the parent monitors get logged in as PagerDuty incidents.
    • Trigger Test Alert: Click the button to test incident creation and resolution in PagerDuty.
    • Tags to be sent with alerts: Select the tag keys associated with the monitor that need to be sent with the alert. When an alert is triggered, tags that match with the monitor will be included in the alert notifications.If no tags are selected, all the tags associated with the monitor will be present in the alert notifications.


  5. Click Save.
    Once the setup process is completed, the PagerDuty integration will be listed in the Third Party Integration dashboard. You can setup multiple PagerDuty integrations in your Site24x7 account by using multiple PagerDuty integration keys from same or different PagerDuty accounts.

Configuring Event Rules based on Custom Parameters

You can configure Event Rules based on Custom Parameters using two methods. They're:

Method 1:

In Site24x7 PagerDuty Integration Page:

1.Configure your custom params in Site24x7.
2.Click on Trigger Test Alert.

Go to PagerDuty:

1.Configuration > Services. Click on Site24x7 Integration>Response Tab > Click on Add One.
2.Create Your First Event Rule> Click on Show Details.
3.Click on the custom param you want this event to be based on, it will be displayed on the right side as a condition.
4.Configure the rules below when this condition is satisfied.

Method 2:

Consider Custom param configured as _username = jeo

Go to PagerDuty:

1.Configuration>Services. Click on Site24x7 Integration> Response Tab > Click on Add One
2.Create Your First Event Rule.
3.Choose Custom Details from the drop-down, in the next text box enter "custom_parameters._username" contains "joe" 

Was this document helpful?
Thanks for taking the time to share your feedback. We’ll use your feedback to improve our online help resources.