Google Cloud Logo

Google Cloud Monitoring Integration Guide

Google Cloud Platform is a cloud hosting solution provided by Google. The cloud computing solutions provided on the platform run on the same infrastructure that Google uses internally for its systems. It is a scalable infrastructure with high reliability and performance.

The Google Cloud Operations service (formerly known as Stackdriver) can be used to monitor both Google Cloud and AWS resources. Metric checks can be set up to detect overloads and outages before they happen, while uptime checks can be set up to ensure that your infrastructure components are running. TaskCall integrates with Google Cloud to make alerts raised by these checks more visible. As soon as the alerts are raised, TaskCall uses its powerful notification and incident response system to get the correct on-call responders to address the incidents right away and reduce system downtime.

Pointers

  • The integration is between a TaskCall service and Google Cloud.
  • Incidents will automatically resolve in TaskCall when metrics fall back within the normal threshold.
  • This integration only receives alerts in TaskCall from Google Cloud.

In TaskCall

  1. Go to Configurations > Integrations and click New Integration.
  2. Select the Google Cloud Monitoring integration.
  3. Give the integration a name and configure how incidents will be created. Only the Default Service field is required. The rest are optional.
  4. Incidents (Optional)
    1. TaskCall automatically maps incoming payloads with internal attributes to create incidents. However, this can be customized in the Incidents tab. Constant values can be included alongside placeholders to dictate which attributes should map to the Incident Title, Description, Tags, Snapshots and Vendor URL. To insert a placeholder use double curly braces.

      Incoming Webhook Incident Tab

      For example, if you enter {{ alert.title }} in the Incident Title field, TaskCall will look for an attribute called "title" nested inside another attribute called "alert" in the incoming payload. If the nested attribute exists, its corresponding value will be pulled from the payload and inserted. If the nested attribute does not resolve successfully, TaskCall will fall back to the default mapping.

      If you are unsure, please leave the fields empty. TaskCall will use the default mapping to create the incident for you.
    2. Select the Urgency level the incident should be created at.
    3. Select the option to Group similar alerts together if you would like follow up triggers from the same alert source to be grouped into the same incident. If you leave this option unchecked, then a new incident will be created for every trigger. (This behavior is specific to new triggers; not updates to an alert.)
    4. Click Next to move on to the Services tab.
  5. Services (Required)
    1. Select the Default Service incidents should be sent to. To route incidents to different services instead, set Map With Attribute to the attribute to route by using a placeholder. Then, map each value it can take to the service that should receive it.

      For example, to route by a region attribute sent in the payload, set Map With Attribute to {{ region }}, then map US to one service and EU to another, and so on.

      Incoming Webhook Services Tab
    2. Click Next to move on to the Authorization tab.
  6. Authorization (Optional)
    1. The Authorization tab allows a Bearer Token and an IP Allowlist be added if you would like to restrict who is able to send alerts to this integration. If you are unsure, this can be skipped.
  7. Once done, click Save.
  8. Copy the Integration Url that is issued for the integration. This will be used to set up the notification in Google Cloud Monitoring.

In Google Cloud

  1. Log into your Google Cloud Platform account. Go to the Dashboard. Click the Go to Monitoring button at the bottom right side of the page.

    Google Cloud Monitoring Integration Step 1

  2. From the navigation bar on the side, go to Alerting. Then click EDIT NOTIFICATION CHANNELS.

    Google Cloud Monitoring Integration Step 2

  3. Find Webhooks from the list of notification channels shown and then click the ADD NEW button next to it.

    Google Cloud Monitoring Integration Step 3

  4. On the modal that pops up, paste the integration url you copied over from TaskCall in the Endpoint URL field. Give it a display name that you can easily identify.

    Google Cloud Monitoring Integration Step 4

  5. Then click TEST CONNECTION first to ensure that the test succeeds. Once the test succeeds, you will be allowed to save the webhook. Click SAVE once you have tested.
  6. Done! Now you can use this webhook channel in any alerting policy and uptime checks, and get notified on TaskCall.
On this page