• Products
  • Get started
  • Documentation
  • Resources

Integrate with Sensu

This article highlights a new alerting feature that's natively available in Jira Service Management which is gradually rolling out to some Jira Service Management Cloud customers. It may not yet be visible or available on your site.

Sensu Logo

Overview

What does the integration offer?

Sensu sends notifications of new events. With a Sensu Integration, Jira Service Management acts as a dispatcher for these 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 the alert is acknowledged or closed.

How does the integration work?

When an alert is created on Sensu, an alert is created in Jira Service Management automatically through the integration.

Set up the integration

Sensu is an API integration. Setting it up involves the following steps:

  • Add a Sensu integration in Jira Service Management

  • Configure the integration in Sensu

Add a <integname> integration

Bidirectional integrations aren’t supported in Free and Standard plans. All the other integrations are supported at a team level in Free and Standard; however, for their outgoing part to work, you need to upgrade to a higher plan. To add any integration at a site level through Settings (gear icon) > Products (under JIRA SETTINGS) > OPERATIONS, you need to be either on Premium or Enterprise.

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 Sensu integration in Jira Service Management:

  1. Go to Settings > Integrations.

  2. Select Add integration.

  3. Run a search and select “Sensu”.

  4. On the next screen, enter a name for the integration.

  5. Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.

  6. Select Continue.
    The integration is saved at this point.

  7. Expand the Steps to configure the integration section and copy the API key.
    You will use this key while configuring the integration in Sensu later.

  8. Select Turn on integration.
    The rules you create for the integration will work only if you turn on the integration.

Configure the integration in Sensu

Sensu Enterprise 3.0 updates the integration to use Jira Service Management's new v2 Alert API, necessitating a breaking change to Sensu Enterprise’s Jira Service Management configuration specification.

Sensu has a plugin to create and close alerts in Jira Service Management.

1. Install the Sensu plugin.

2. Configure Sensu to use Jira Service Management's plugin.
The plugin uses a json file as configuration. Escalations and teams are translated to the "responders" attribute, as follows:

3. In the configuration file, populate the "api_key" field with the API Key copied earlier.

4. Populate responders to add them to the created alert.

Sensu Enterprise 3.0 updates the name of the /overwrites_quiet_hours/ attribute to /overwrite_quiet_hours/. The singular form of this attribute is required to achieve the desired result of overriding alert filtering that would otherwise prevent Jira Service Management from notifying recipient(s) during their configured quiet hours.

Still need help?

The Atlassian Community is here for you.