Overview
What does the integration offer?
Google Stackdriver is natively integrated with the Google cloud platform, Amazon Web Services, and popular open-source packages. Google Stackdriver provides various metrics, dashboards, alerting, log management, reporting, and tracing capabilities.
Jira Service Management has a Webhook integration with Google Stackdriver. Using the integration, Google Stackdriver sends incidents to Jira Service Management API with detailed information. Jira Service Management acts as a dispatcher for Google Stackdriver alerts, determines the right people to notify based on on-call schedules – notifies via email, text messages (SMS), phone calls, and iPhone & Android push notifications, and escalates alerts until they are acknowledged or closed.
How does the integration work?
When the state of a notification is open in Google Stackdriver, an alert is automatically created in Jira Service Management through the integration.
When the state of a notification is closed in Google Stackdriver, the related alert is closed automatically in Jira Service Management.
When the state of a notification is acknowledged in Google Stackdriver, the related alert is acknowledged automatically in Jira Service Management.
Set up the integration
Google Stackdriver is an API-based integration. Setting it up involves the following steps:
Add a Google Stackdriver integration in Jira Service Management
Configure the integration in Google Stackdriver
Add Google Stackdriver integration
If you're using the Free or Standard plan in Jira Service Management, you can only add this integration from your team’s operations page. To access the feature through Settings
(gear icon) > Products
(under JIRA SETTINGS) > OPERATIONS
, you need to be on Premium or Enterprise plan.
Adding an integration from your team’s operations page makes your team the owner of the integration. This means Jira Service Management only assigns the alerts received through this integration to your team.
To add a Google Stackdriver integration in Jira Service Management:
Go to your team’s operations page.
On the left navigation panel, select Integrations and then Add integration.
Run a search and select “Google Stackdriver”.
On the next screen, enter a name for the integration.
Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.
Select Continue.
The integration is saved at this point.Expand the Steps to configure the integration section and copy the Webhook URL.
You will use this URL while configuring the integration in Google Stackdriver later.Select Turn on integration.
The rules you create for the integration will work only if you turn on the integration.
Configure the integration in Google Stackdriver
In Google Cloud, go to Alerting on the left menu.
Select Edit Notifications Channels on the top menu.
Open the WEBHOOKS tab.
Select Add New.
Paste the URL you copied while adding the integration in Jira Service Management into ENDPOINT URL.
Select Save.
Sample payload sent from Google Stackdriver
JSON
{ "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 }
Add Comment