Collecting data with Trackers and Webhooks

  1. Home
  2. Docs
  3. Collecting data with Trackers and Webhooks
  4. Webhooks – collecting data from third parties
  5. PagerDuty



This webhook integration lets you track a variety of events logged by PagerDuty.

Available events are:

  • Trigger
  • Acknowledge
  • Unacknowledge
  • Resolve
  • Assign
  • Escalate
  • Delegate



Integrating PagerDuty’s webhooks into Snowplow is a two-stage process:

  1. Configure PagerDuty to send events to Snowplow
  2. (Optional) Create the PagerDuty events table into Amazon Redshift

Configure PagerDuty

First login into to your PagerDuty account and select the Services button from the top of the screen.

Select which service you would like to add a Webhook endpoint to then click the Add a webhook button.

Fill in the name of your Webhook and the Endpoint URL.

For the Endpoint URL field, you will need to provide the URI to your Snowplow Collector. We use a special path to tell Snowplow that these events are generated by PagerDuty:

http://<collector host>/com.pagerduty/v1?aid=<company code>
Code language: HTML, XML (xml)

The aid= name-value pair in your URI’s querystring is optional; this is the app_id parameter taken from the Snowplow Tracker Protocol. You can use it to specify which company in PagerDuty these call complete events belong to. Putting it all together, our setup screen now looks like this:

If you want, you can also manually override the event’s platform parameter like so:

http://<collector host>/com.pagerduty/v1?aid=<company code>&p=<platform code>
Code language: HTML, XML (xml)

Supported platform codes can again be found in the Snowplow Tracker Protocol; if not set, then the value for platform will default to srv for a server-side application.

Click save and from now on when any of the seven available events are triggered an event will also be sent to the Webhook!

That’s it – with this table deployed, your PagerDuty events should automatically flow through into Redshift.

If you’d like to learn more about Snowplow BDP you can book a demo with our team, or if you’d prefer, you can try Snowplow technology for yourself quickly and easily.