This webhook integration lets you track a variety of events logged by PagerDuty.
Available events are:
Integrating PagerDuty's webhooks into Snowplow is a two-stage process:
- Configure PagerDuty to send events to Snowplow
- (Optional) Create the PagerDuty events table into Amazon Redshift
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>
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>
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.