Integrate with Sensu
Overview
What does the integration offer?
Sensu sends notifications of new events. With a Sensu Integration, Compass 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 iOS and 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 Compass 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 Compass
Configure the integration in Sensu
Add a <integname> integration
In this release, only incoming integrations are fully supported in the Standard plan, at a team level. To use outgoing integrations or the outgoing part of bidirectional integrations, upgrade to a higher subscription plan. There may be restrictions on how you can create and apply integration rules as well.
You can add this integration only from your team’s operations page. Adding an integration from your team’s operations page makes your team the owner of the integration. This means Compass only assigns the alerts received through this integration to your team.
To add a Sensu integration in Compass:
Go to Settings > Integrations.
Select Add integration.
Run a search and select “Sensu”.
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 API key.
You will use this key while configuring the integration in Sensu 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 Sensu
Sensu Enterprise 3.0 updates the integration to use Compass's new v2 Alert API, necessitating a breaking change to Sensu Enterprise’s Compass configuration specification.
Sensu has a plugin to create and close alerts in Compass.
Install the Sensu plugin.
Configure Sensu to use Compass's plugin.
The plugin uses a json file as configuration. Escalations and teams are translated to the "responders" attribute, as follows:
In the configuration file, populate the "api_key" field with the API Key copied earlier.
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 Compass from notifying recipient(s) during their configured quiet hours.