# Stackdriver

[<mark style="color:blue;">Stackdriver</mark>](https://cloud.google.com/monitoring/docs) offers monitoring of a wide variety of metrics, dashboards, alerting, log management, reporting, and tracing capabilities.

Route detailed events from Stackdriver to the right users in Squadcast.

### How to integrate Stackdriver with Squadcast

#### In Squadcast: Using Stackdriver as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

![](/files/ej4AI9zpOyFu5NZJCbwC)

2\. Select **Stackdriver.** Copy the displayed **Webhook URL** to [configure](#in-stackdriver-adding-a-webhook-for-squadcast) it within **Stackdriver.** Finish by clicking **Add Alert Source** -> **Done.**

![](/files/UqAgap58cSMtneMcWdMs)

{% hint style="warning" %}
**Important:**

When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

### In Stackdriver: Adding a Webhook for Squadcast

Login to your Google Cloud console. From the sidebar on the left, scroll to find **Operations** and select **Monitoring**

![](/files/wqUN42Gh6VYo57fGAk1f)

#### Adding a Notification Channel - Webhooks

**(1)** From the left sidebar, select **Alerting**

![](/files/oLu0SStofvKyhrrNESiJ)

**(2)** Select **Edit Notification Channels**

![](/files/SWrbJFDcyXIrsxjeHhXn)

**(3)** Scroll until you find **Webhooks**. Here, click on **Add New** to add the Squadcast Webhook

![](/files/Vgy4j3l00QC3ZO19siJs)

**(4)** Here, paste the previously copied Webhook from Squadcast under **Endpoint URL**. Give the Webhook a meaningful **Displaye Name**.

**Things to keep in mind here**:

* **Do not enable** the checkbox for using HTTP Basic Auth
* When you paste the Webhook from Squadcast in **Endpoint URL** field, ensure you remove the additional `https://` that gets added

**(5)** Click on **Test Connection** and check to see if an incident has been created for the incident in Squadcast

![](/files/6LQjA0fD2XmQlwyiPN6i)

**(6)** Finally, click on **Save**

#### Setting up Alerting Policies

**(1)** Within the **Alerting** page, to add a **Policy**, click on either **+ Create Policy** on the top or **Add Policy** in the bottom

![](/files/kprW7v7lvO5HtegUqw1Y)

**(2)** Now, **Add Condition** for your **Policy**. In that page, you can set up the metrics that you would wish to monitor and their thresholds, along with the resources

![](/files/pZ3PyTtfqU5g8TYQ4i48)

**(3)** Once that is done, select **Next**

![](/files/vcduujsbzkDoePXscxJE)

**(4)** In the **Notification Channels** dropdown, select the Webhook previously configured for Squadcast and select **OK**

![](/files/Ulo4LkHyMACZQosyDE9V)

**(5)** Enable the checkbox as shown in the screenshot to receive **Incident Resolutions signals** as well. Then, select **Next**

![](/files/cHSgtR1xSH4k8gKc0taJ)

**(6)** Here, add a meaningul **Alert Name**, add **Optional Documentation** and click on **Save** to create your **Alerting Policy**

![](/files/5Rxru790tK2hpGEGFmEV)

**(7)** Once everything is done, in the **Policies** page, you will be able to see the previously added **Alerting Policy**. Ensure that the **Alerting Policy** toggle is **Enabled** to `on`

![](/files/nYjgvHbSl0ER0om59Hlk)

That is it, you are now good to go! Whenever an alert is generated in Stackdriver, an incident will be created for the same in Squadcast.

{% hint style="info" %}
**FAQ:**

Q: Does this integration support auto-resolution of incidents in Squadcast?\
A: Yes, this integration **supports auto-resolution of incidents in Squadcast**, meaning that whenever alerts get resolved in Stackdriver, the corresponding incidents will be automatically resolved in Squadcast as well. If you do not enable the checkbox to **recieve Incident Resolution signals**, then your Squadcast incidents will not be auto-resolved when alerts in Stackdriver are resolved.
{% endhint %}

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*


---

# Agent Instructions: 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:

```
GET https://support.incidents.cloud.solarwinds.com/integrations/alert-source-integrations-native/stackdriver.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
