Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results

Stackdriver Integration

Stackdriver is a popular, full-stack, intelligent monitoring service of infrastructure systems and applications running on Amazon Web Services and Rackspace cloud environments. Stackdriver’s goal is to help Dev and Ops teams manage large, distributed applications running in the public cloud. It visualizes applications, systems, and infrastructure metrics. Also, Stackdriver provides a policy system to alert users when predefined thresholds are breached. OpsGenie is an alert and notification management solution that is highly complementary to Stackdriver's alerting mechanism.

What does OpsGenie offer Stackdriver users?

By using OpsGenie’s Stackdriver Integration: you can forward Stackdriver incidents to OpsGenie, and OpsGenie alerts to Stackdriver. OpsGenie can determine the right people to notify based on on-call schedules, using email, text messages (SMS), phone calls, iOS & Android push notifications, and escalating alerts until the alert is acknowledged or closed.

Functionality of the integration

  • When you create an incident in Stackdriver, it creates an alert in OpsGenie.
  • When you acknowledge an incident in Stackdriver, the alert will be acknowledged in OpsGenie.
  • When you close an incident in Stackdriver, the alert will close in OpsGenie.
  • When you acknowledge an alert in OpsGenie, the incident will be acknowledged in Stackdriver.
  • When you close an alert in OpsGenie, the incident will be closed in Stackdriver.

Add Stackdriver Integration in OpsGenie

  1. Please create an OpsGenie account if you haven't done so already.
  2. Go to OpsGenie's Stackdriver Integration page.
  3. Specify who should be notified for Stackdriver alerts using the "Teams" and "Recipients" fields. Autocomplete suggestions will be provided as you type.
  4. Copy the Webhook URL.
  5. Click on "Save Integration."

Configuration in Stackdriver

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

Advanced Configuration Settings in OpsGenie

Acknowledging and Closing Incidents in Stackdriver (Optional)

  • You can set the integration to automatically acknowledge or close an incident in Stackdriver, when you acknowledge or close the alert in OpsGenie.
  • In order to do this, you should select the "Send Alerts To Stackdriver" option in integration settings.
  • After enabling this option, you will see the "Stackdriver API Key" field.
  • In Stackdriver, click on Username drop-down menu on the top right. Select "Account Settings".
  • Select "API Keys" from the left menu.
  • Click on "+ Add" button.
  • Give your API Key a description and select "API Admin Key" as "Access Role".
  • Click on "Save" button.
  • Copy your newly created Stackdriver API Admin Key and paste it into the "Stackdriver API Key" field in OpsGenie.

Sample payload sent from 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.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

Stackdriver Integration