Description: Canary supports outgoing Webhooks from your Console to an endpoint of your choice. This event-driven approach means you get your alerts in realtime! We support your favourite apps, such as Slack and Microsoft Teams.
In this example, we’ll post data to webhook.site, a public tool for assisting in Webhook development. It’s useful to see what data is posted in the Webhook, but we don’t recommend using it for production purposes. You can consume the Webhook by writing a custom endpoint and hosting it on infrastructure under your control.
Note: We also support Flock specific Webhooks - see guide here
Follow the steps below to enable and set up a Generic Webhook on your Console:
You will need to have an endpoint to post notifications to. We have used webhook.site as the endpoint.
Opening the website will reveal a URL to post notifications to (all information is posted in a JSON format).
Note: Copy the URL that is displayed.
Log in to your Console.
Click on the "Gear" and then "Global Settings" to go to Global Settings page.
Click on Webhooks and paste the URL into the "Generic" option and click "Add".
Once saved, a notification will be posted to the webhook.site URL and alerts will now be posted to this Webhook.
Webhook structure :
The structure of the JSON object is as follows: