Link Search Menu Expand Document

Stackdriver Integration Guide

Logo Company Estimated Time Functionality Vendor Docs
Google LLC Google LLC 5 minutes One-Way view

Stackdriver Integration

Stackdriver aggregates metrics, logs, and events from infrastructure, giving developers and operators a rich set of observable signals that speed root-cause analysis and reduce mean time to resolution (MTTR).

How Stackdriver users benefit from PagerTree

Stackdriver triggers alerts when monitoring policies are breached. PagerTree acts as the dispatcher for these alerts, determining the right people to notify based on on-call schedules. PagerTree notifies them via email, sms, voice, and/or push notifications until the alert is acknowledged.

Functionality of Integration

The Stackdriver integration is one-way, meaning:

  • When an alert is Open (incident.state == 'open') in Stackdriver, an alert is created in PagerTree automatically.
  • When an alert is Closed (incident.state == 'closed') in Stackdriver, the alert is resolved in PagerTree automatically.

Tutorial Overview

In this integration tutorial we will show you how to send alerts from Stackdriver into PagerTree. The estimated time for this integration is 5 minutes. We assume that you already have a PagerTree and Stackdriver account setup.

In PagerTree

  1. From the integrations page, click the New Integration” button Click Create Integration Button
  2. Click the logo of the Type of integration you want to create
  3. In the “Create Integration” form, fill out the following:
    1. Name of the Integration.
    2. Select an appropriate Urgency for when this integration is triggered
    3. Select the Team this alert will be assigned to
    4. Any additional options requested by the integration
  4. Click Create
  5. Copy the Endpoint URL Copy Endpoint URL

In Stackdriver

  1. From the top navigation menu click [Workspace Name] -> Workspace Settings Menu Workspace Settings
  2. From the Settings Page
    1. Select Notifications -> Webhooks
    2. Click the Add Webhook button Navigate to Add Webhook
      1. Endpoint URL - Paste the PagerTree Endpoint URL you copied earlier
      2. Webhook Name - Name the webhook appropriately (e.g. “PagerTree Webhook”)
      3. Click Test Connection
      4. Click Save Create the Stackdriver Webhook
  3. From the left navigation menu click Alerting -> Create a Policy Navigate to Create Alerting Policy
    1. Conditions - Select conditions for when this alerting policy will be breached
    2. Notifications - Select the type Webhook and then select the PagerTree Webhook we created earlier.
    3. Name this policy - Give an appropriate name (e.g. PagerTree Alerting Policy)
    4. Click Save Policy Create the Stackdriver Alerting Policy

You have successfully completed the Stackdriver Integration. Now when Stackdriver creates an alert, PagerTree will create an alert and route it to the correct team member that is on-call. If you have any questions please contact [email protected]

© 2016-2022 PagerTree LLC. All rights reserved.