PagerDuty
This guide shows you how to create a webhook to Vespper in your PagerDuty account.
Overview
Vespper uses PagerDuty Generic Webhooks V3 in order to be notified when incidents/alerts happen. Once an incident happens, PagerDuty will send a webhook to your Vespper account, kicking off the investigation.
For more information about PagerDuty webhooks, checkout the official documentation.
Prerequisites
- Working environment with an organization. If you don't have one, head over to the setup page.
- A configured PagerDuty integration. To learn how to create one, check the PagerDuty integration guide.
- ngrok tunnel that forwards traffic to your local Vespper API. Install ngrok, start a tunnel at port 3000 (
ngrok http 3000
) and copy the tunnel URL.
Setup
Follow these steps to connect Vespper to PagerDuty:
- Inside your organization settings, go to "Webhooks".
- Locate the "PagerDuty" integration and click "Add".
- In the modal, click "Generate" to generate a new secret and copy it.
Once you've obtained your secret, go to your PagerDuty account dashboard and follow these steps:
- In the top navbar, choose Integrations > Generic Webhooks (V3).
- Click “New Webhook”
- In the Webhook URL, insert your ngrok tunnel URL followed by
/webhooks/pagerduty
, e.ghttps://1234abcd.ngrok.io/webhooks/pagerduty
. - In the scope type, choose "Account"
- In the event subscription section, click “Deselect all” and choose only “incident.triggered”
- Add a custom header called "x-vespper-secret" and insert your secret.
- Click “Add Webhook”
That's it! Now Vespper will be notified when an incident happens.