> For the complete documentation index, see [llms.txt](https://docs.ilert.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ilert.com/integrations/inbound-integrations/google-stackdriver.md).

# Google Cloud Monitoring (formerly Stackdriver) Integration

With the ilert Google Cloud Monitoring integration, you can create alerts in ilert based on Google Cloud Alerts.

With [Google Cloud Monitoring](https://cloud.google.com/monitoring) you can gain visibility into the performance, availability, and health of your applications and infrastructure.

## In ilert: Create a Google Cloud Monitoring alert source <a href="#in-ilert" id="in-ilert"></a>

1. Go to **Alerting** → **Alert sources** and click **Create new alert source**.
2. Search for **Google Cloud Monitoring**, click its tile, and click **Next**.
3. Give your alert source a name, optionally assign teams, and click **Next**.
4. Choose who gets notified: select **Use existing escalation policy** and pick a policy, or **Generate new escalation policy** to start with a basic one that notifies you first. Click **Next**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-8a281bf3931f5a1a531951ce97984d50989dd875%2Falert-source-escalation-step.png?alt=media" alt="The escalation step of the ilert alert source wizard, headed Who should be notified about alerts, with an escalation policy selected and a preview of its escalation rules below."><figcaption><p>Pick an existing escalation policy, or generate a basic one without leaving the wizard.</p></figcaption></figure>
5. Select **Default grouping** and click **Continue setup**. It groups events by the alert key the integration sets; the other [grouping options](/alerting/configure-alerting/alert-sources.md#event-grouping) are easier to judge once events are arriving.
6. The next page shows more settings, such as notification priority and alert templates. Click **Finish setup** for now; you can change them later.
7. On the final page, ilert shows the integration key and URL for this alert source. You will need them later in this guide.

## In Google Cloud Console: Create Webhook Notification Channel <a href="#create-webhook-notification" id="create-webhook-notification"></a>

1. Go to Google Cloud Console and search for Monitoring

![](https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M76ygPnS4HUcFSX8ulm%2F-MkHNgatvPiuy0QQ6AzC%2F-MkboOKG4rZ7xBB_lHqH%2FScreenshot_27_09_21__17_12.png?alt=media\&token=d13b99e8-dfc3-44aa-9a09-2f87af4c5010)

2. On the Monitoring page go to **Alerting** and click on the **Edit Notification channels** button

![](https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M76ygPnS4HUcFSX8ulm%2F-MkHNgatvPiuy0QQ6AzC%2F-Mkbp0J8MrM1hv8VgEyG%2FScreenshot_27_09_21__17_15.png?alt=media\&token=9341bee1-ba14-4b45-ab02-e3b03d8b3b08)

3. On the Notification Channels page click on the **Add New** button beside the Webhooks channels.

![](https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M76ygPnS4HUcFSX8ulm%2F-MkHNgatvPiuy0QQ6AzC%2F-MkbpciTuNJbM5r3QohH%2FScreenshot_27_09_21__17_17.png?alt=media\&token=1e395565-244d-4e00-abb4-e39457f18ab2)

4. Assign a **Display Name** on the following modal (e.g. ilert) and in the field "Endpoint URL" paste the **Webhook URL** that you generated in ilert and click on the **Save** button.

![](https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M76ygPnS4HUcFSX8ulm%2F-MkHNgatvPiuy0QQ6AzC%2F-MkbqIExdHXCzsj2-xxk%2FScreenshot_27_09_21__17_21.png?alt=media\&token=0aa0415c-c920-4bfc-bd1e-e4dec568d3a2)

5. After you've created the ilert webhook, you can use it as a notification in any Alerting Policy in Google Cloud Monitoring. The following screenshot will create a new Alerting Policy with ilert as the notification method.

![](https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M76ygPnS4HUcFSX8ulm%2F-MkHNgatvPiuy0QQ6AzC%2F-Mkbr1cSsBTN7vaNY1mc%2FScreenshot_27_09_21__17_25.png?alt=media\&token=32363840-b776-4f15-8f0f-a67836a19985)

## FAQ <a href="#faq" id="faq"></a>

**Will alerts in ilert be resolved automatically?**

Yes, as soon as the state of an alert in Google Cloud Monitoring is `RESOLVED`, the associated alert in ilert is resolved.

**Can I link Google Cloud Monitoring to multiple alert sources in ilert?**

Yes, create a webhook for each alert source in Google Cloud Monitoring. You can then choose which Webhook to use for alerting for each Alerting Policy in Google Cloud.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ilert.com/integrations/inbound-integrations/google-stackdriver.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
