Google Stackdriver Integration

Google Stackdriver provides powerful monitoring, logging, and diagnostics. It equips you with insight into the health, performance, and availability of cloud-powered applications, enabling you to find and fix issues faster. It is natively integrated with Google Cloud Platform, Amazon Web Services, and popular open source packages. Stackdriver provides a wide variety of metrics, dashboards, alerting, log management, reporting, and tracing capabilities.

What OpsGenie offer to Google Stackdriver users? 

OpsGenie has a webhook integration with Google Stackdriver. Using the integration, Google Stackdriver sends incidents to OpsGenie API, with detailed information. OpsGenie acts as a dispatcher for Google Stackdriver alerts, determining the right people to notify based on on-call schedules, using email, text messages (SMS), phone calls and iPhone & Android push notifications, and escalating alerts until the alert is acknowledged or closed.


Functionality of the integration

  • When the state of a notification is open in Google Stackdriver, an alert is also created in OpsGenie automatically through the integration.
  • When the state of a notification is close in Google Stackdriver, the related alert will be closed automatically.
  • When the state of a notification is acknowledge in Google Stackdriver, the related alert will be acknowledged automatically.

Add Google Stackdriver Integration in OpsGenie

  1. Please create an OpsGenie account if you haven't done already
  2. Go to OpsGenie Google Stackdriver Integration page,
  3. Specify who should be notified for Google Stackdriver alerts using the "Teams" and "Recipients" fields. Auto-complete suggestions will be provided as you type. 
  4. Copy the Webhook URL by clicking on the copy button or selecting.
  5. Click on "Save Integration".

Configuration in Google Stackdriver

  1. In Google Stackdriver, go to Account Settings
  2. Select Notifications from the left
  3. Select WEBHOOKS tab
  4. Click + Add
  5. Paste integration API URL into ENDPOINT URL
  6. Click Save

Advanced Configuration Settings in OpsGenie

Sample payload sent from Google Stackdriver

{
  "incident": {
    "incident_id": "f2e08c333dc64cb09f75eaab355393bz",
    "resource_id": "i-4a266a2d",
    "resource_name": "webserver-85",
    "state": "open",
    "started_at": 1385085727,
    "ended_at": null,
    "policy_name": "Webserver Health",
    "condition_name": "CPU usage",
    "url": "https://app.google.stackdriver.com/incidents/f333dc64z",
    "summary": "CPU for webserver-85 is above the threshold of 1% with a value of 28.5%"
  },
  "version": 1.1
}

Sample alert