Stackdriver

Send events to Squadcast from Google Stackdriver

Stackdriver 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.

2. Select Stackdriver. Copy the displayed Webhook URL to configure it within Stackdriver. Finish by clicking Add Alert Source -> Done.

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.

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

Adding a Notification Channel - Webhooks

(1) From the left sidebar, select Alerting

(2) Select Edit Notification Channels

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

(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

(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

(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

(3) Once that is done, select Next

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

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

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

(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

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.

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.

Have any questions? Ask the community.

Last updated