Opsgenie
This guide shows you how to create a webhook to Vespper in your Opsgenie account.
Overview
Vespper uses Opsgenie Webhooks Integration in order to be notified when incidents/alerts happen. Once an incident happens, Opsgenie will send a webhook to your Vespper account, kicking off the investigation.
For more information about Opsgenie 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 Opsgenie integration. To learn how to create one, check the Opsgenie 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 Opsgenie:
- Inside your organization settings, go to "Webhooks".
- Locate the "Opsgenie" 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 Opsgenie account dashboard and follow these steps:
- Go to Settings > Integrations > Add new integration.
- Search Webhook and click it
- Give it a name and click "Create".
- Go to the integration settings and choose “Authenticate with a Webhook account”
- In the Webhook URL, insert your ngrok tunnel URL followed by
/webhooks/opsgenie
, e.ghttps://1234abcd.ngrok.io/webhooks/opsgenie
. - Add a custom header called x-vespper-secret and put your secret.
- Mark the Add Alert Description to Payload and Add Alert Details to Payload options.
- Click Save
- In the Alert Actions section, choose only Alert is created
That's it! Now Vespper will be notified when an incident happens.