Skip to main content
Data Infrastructure Insights

Workload Security Webhook Example for PagerDuty

Contributors netapp-alavoie

Webhooks allow users to send alert notifications to various applications using a customized webhook channel. This page provides an example for setting up webhooks for PagerDuty.

Note This page refers to third-party instructions, which are subject to change. Refer to the PagerDuty documentation for the most up-to-date information.

PagerDuty Setup:

  1. In PagerDuty, navigate to Services > Service Directory and click on the +New Service button.

  2. Enter a Name and select Use our API directly. Select Add Service.

    Pagerduty screen

  3. Select the Integrations tab to see the Integration Key. You will need this key when you create the Workload Security webhook below.

  1. Go to Incidents or Services to view Alerts.

    pagerduty incidents list example

Create Workload Security PagerDuty Webhook:

  • Navigate to Admin > Notifications and select the Workload Security Webhooks tab. Select '+ Webhook' to create a new webhook.

  • Give the webhook a meaningful name.

  • In the Template Type dropdown, select PagerDuty Trigger.

  • Create a custom parameter secret named routingKey and set the value to the PagerDuty Integration Key created above.

Setting the Routing Key

workload security pagerduty webhook example

Notifications via Webhook

  • To notify on events via webhook, navigate to Workload Security > Policies. Select +Attack Policy or +Warning Policy.

  • Enter a meaningful policy name.

  • Select required Attack Type(s), Devices to which the policy should be attached, and the required Actions.

  • Under Webhooks Notifications dropdown, select the required PagerDuty webhooks. Save the policy.

Note: Webhooks can also be attached to existing policies by editing them.

add attack policy dialog showing webhook