Configure a webhook in Google Monitor

Configure webhook endpoints so that Google Monitor can use the endpoint to communicate with Incident Response.

Before you begin

Ensure you have created an account in Google Monitor.

Role required: Responder, Manager, or Administrator

About this task

Note: While this integration with a third-party product is supported, the documentation here is based upon information provided by that third-party. More current information about the operation of that third-party’s system may be available from them directly.

Procedure

  1. Log in to the Google Cloud Platform console.
    The Google Cloud Platform homepage.
  2. On the navigation pane, under OPERATIONS, click Monitoring > Alerting.
    Select the alerting option.
  3. Click EDIT NOTIFICATION CHANNELS.
    Select the edit notification channels option.
    The Notification channels page appears.
    The Notification channels page.
  4. Under the Webhooks section, click ADD NEW.
    The webhooks section.
  5. On the Add Static Webhook form, perform the following actions:
    Field Action to be taken
    Endpoint URL Enter the webhook URL that you have already created.

    For more information on how to generate a webhook URL, see Create a webhook endpoint for Google Monitor.

    Display name Enter a display name for the webhook endpoint.
  6. To verify if the integration is working fine with Incident Response, click TEST CONNECTION.
  7. Click SAVE.
  8. On the navigation pane, click Alerting.
    The alerting option to create policies or alert conditions.
  9. Click + CREATE POLICY.
    The Ceate Policy option.
  10. Under the What do you want to track? section, click ADD CONDITION.
    The Metric option.
  11. Under the METRIC tab, add the following information:
    • In the Target section, add the resource type and metric.
    • In the Configuration section, add the alert trigger conditions.
    Fill the resource type, metrics, and conditions for alerts.
  12. Click ADD and then click Next.
    The section where you can define the notification channels on which you want to receive notifications.
  13. Under the Who should be notified? section, in the Notification Channels list, select the webhook names where you want to get alert notifications and click OK.
    Select the notification channels.
  14. Click Next.
  15. Under the What are the steps to fix the issue? section, in the Alert name field, enter a name for the alert.
    A name for the alert policy.
  16. Optional: In the Documentation field, enter instructions or suggestions to solve the issue.
    Enter instructions or suggestions to solve the issue.
  17. Click Save.