Configure Webhook Reception in PagerDuty

Prev Next

NOTE: This documentation was written based on PagerDuty documentation at the time of release. Check PagerDuty for the most current documentation.

Send SysTrack sensor notifications to PagerDuty as events. In PagerDuty, you create an Events API v2 integration and get its integration key. In SysTrack, you add a webhook recipient that sends the events to PagerDuty, and add the recipient to a sensor notification.

User Roles

In PagerDuty, you need one of these user roles to add a webhook integration:

  • Manager

  • Admin or Global Admin

  • Account Owner

Add a Webhook Subscription

  1. In PagerDuty, go to Services > Service Directory and select the service that receives the SysTrack events.

  2. Select the Integrations tab and click Add another integration.

  3. Select Events API V2 and click Add.

  4. In the list of integrations, click to the right of the new integration to view and copy its Integration Key. Use this key in your webhook to send events to PagerDuty.

For details, see Services and Integrations in the PagerDuty documentation.

Add the Webhook Recipient in SysTrack

To add a recipient, Configure must be unlocked for editing. See Unlock for Editing.

  1. Go to Configure > Sensor Configuration > Notifications, and select the Recipients tab.

  2. Add a webhook recipient. See Webhook Support for Sensor Notifications. Use these values:

    • URL: https://events.pagerduty.com/v2/enqueue, the PagerDuty Events API v2 endpoint. See Send an Alert Event in the PagerDuty documentation.

    • Request Method: POST.

    • Body: the template in Webhook Body Template for PagerDuty, below, with your integration key.

  3. Click Add Recipient.

  4. Add the recipient to a sensor notification. See Manage Sensor Notifications.

  5. To check the setup, wait until the sensor notification activates. The event appears in PagerDuty.

Webhook Body Template for PagerDuty

Copy and paste this content into Body in the Add New Recipient dialog box, and edit it as needed. For the variables you can use, see Sensor Notification Webhook Body Templates.

TIP: For PagerDuty, add your integration key to the JSON template and use the Events API v2 URL (https://events.pagerduty.com/v2/enqueue) with the POST method.

IMPORTANT: You must replace the routing_key property’s value with the customer-generated integration key. You can find this value in PagerDuty documentation.

{
	"routing_key": "YOUR_ROUTING_KEY",
	"event_action": "trigger",
	"payload": {
		"summary": "@{notificationName}",
		"timestamp": "@{activationTime}",
		"severity": "warning",
		"source": "SysTrack Sensor Notification",
		"custom_details": {      
			"Sensor(s)": "@{sensorNamesUnquoted}",
			"Group": "@{groupName}",
			"Activation": "@{activationThresholdText}",
			"Description": "@{notificationDescription}"
		}
	},
	"links": [
		{
			"href": "@{notificationActivationDetailsURL}",
			"text": "Learn more in SysTrack"
		}
	]
}