Google Chat for Alert Notifications
Last updated
Last updated
The following steps will configure a ThousandEyes custom webhook to send alert notifications to a Google Chat space.
Open Google Chat and select an existing space or, to create a new space under the Spaces section, click the + and Create a Space as shown in the screenshot below.
If you already have a Google Chat space you want to use to create the webhook, you can skip to step 3 - the Apps & Integrations step.
Give your space a name (this example uses "ThousandEyes Custom Webhook Test") and click Create.
Use the pull down arrow next to the space and click Apps & Integrations.
Click the Manage webhooks button to create the webhook.
Provide a name for the incoming webhook (this example is named ThousandEyes Webhook) and optionally add an avatar (for example, the ThousandEyes logo), then click Save.
The optional ThousandEyes logo avatar can be found at: https://avatars.githubusercontent.com/u/307302?s=200&v=4
Important: Copy the resulting webhook URL which includes the key and token information. This will be required for step 11 for ThousandEyes to send alert notifications into the Google Chat space.
Click the X to close.
Log in to your ThousandEyes account and navigate to Integrations.
Click + New Integration.
In the side panel that opens, click Custom Webhook.
Fill in the following fields:
Name: This is the name that will be assigned to the alert notification.
URL: The URL of the Google Chat webhook (the URL you copied in step 6) where the alerts will be sent.
You can break the key and token out in JSON format and add them to the URL query parameters section instead of using the long URL.
Body: The instructions for the webhook. Note: The code below is an example only. You can update it to meet your requirements.
A completed webhook page should look like the below screenshot.
Click Test to verify that the webhook is working. You will receive the message shown below with OK (200) if it is working.
Verify the Google Chat space received the test message. It should look like the below screenshot.
Click Save.
Apply the webhook to your existing alert rules using the resulting Manage Alert Rules side panel.
For more information on configuring webhooks, see Custom Webhooks.