Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

What does the integration offer?

Use Compass's Consul integration to sends Consul alerts to Compass API with detailed information. Compass acts as a dispatcher for Consul alerts, determines the right people to notify based on on-call schedules using email, text messages (SMS), phone calls, and iPhone and Android push notifications, and escalates alerts until the alert is acknowledged or closed.

How does the integration work?

When Consul triggers an alert, an alert is created in Compass automatically through the integration.

Set up the integration

Consul is an API-based integration. Setting it up involves the following steps:

  • Add a Consul integration in Compass

  • Configure the integration in Consul

Add a Consul integration

Info

Bidirectional integrations aren’t supported in the Standard plan. All the other integrations are supported at a team level in Standard.

If you're using the Standard plan in Compass, 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 Consul integration in Compass, complete the following steps:

  1. Go to your team’s operations page.

  2. On the left navigation panel, select Integrations and then Add integration.

  3. Run a search and select “Consul”.

  4. On the next screen, enter aname 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 Consul 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 Consul

To configure the integration of Consul with Compass, complete the following steps:

  1. Install Consul-Alerts on your Consul server. Find out how to install Consul-Alerts.

  1. Ensure that Consul-Alerts is running.

  1. Configure the Compass API key:


curl -X PUT -d 'API_KEY' http://localhost:8500/v1/kv/consul-alerts/config/notifiers/opsgenie/api-key

Info

The Consul agent's IP and port may vary.

  1. Optional: Set the entity field value to show up in Compass alert details. The default is 'Cluster-Alert'.


curl -X PUT -d 'Consul' http://localhost:8500/v1/kv/consul-alerts/config/notifiers/opsgenie/cluster-name

  1. Enable Compass notifications in Consul-Alerts:


curl -X PUT -d 'true' http://localhost:8500/v1/kv/consul-alerts/config/notifiers/opsgenie/enabled

When a Consul healthcheck becomes critical, a Compass alert is automatically created. When the Consul healthcheck passes again, the Compass alert is automatically closed.

Note

This is an API-based integration, so dynamic (draggable) properties such as custom priority, payload, URL, and headers aren't available.