OpsGenie Integration

OpsGenie is an Incident Managment System that makes sure the right people get notified at the right time when something goes wrong. To integrate with OpsGenie:

From OpsGenie:

  1. Click on "teams" from the left sidebar and click the team you wish to integrate with Cronitor
  2. On the Teams page you will see a new left sidebar with an "Integrations" option. Select it, click it.
  3. Click the "Add integration" button.
  4. Select "API" integration.
  5. Customize integration name, priority and other settings as desired.
  6. You're done in Opsgenie. You'll need the API key later.

From Cronitor:

  1. From the Settings > Integrations page, click the Create Integration button and select OpsGenie.
  2. Give this integration a name. This will be used in the Cronitor UI.
  3. Give this integration a unique identifier. This can be used in the Cronitor API.
  4. Paste the provided OpsGenie key into the API Key field and complete the integration.
  5. Select this integration from the OpsGenie dropdown box under the "integrations" tab when creating or editing a monitor or notification list.
  6. You're done. You can repeat

A failure opens an Opsgenie alert on the alias <monitor code>-<environment key>. A recovery closes that alias. A run, a complete, and a tick are priority P5 (informational) on the alias <code>-<environment key>:notice. Opsgenie deduplicates an open alert by alias, and close and acknowledge select the alert by that same alias, so the notice cannot count against, close, or acknowledge the paging alert. Cronitor never closes or acknowledges the P5 notice alert on <code>-<env>:notice; later notices are deduplicated into it until it is closed in Opsgenie. Alert API. De-duplication.

The kind of issue, e.g. Failed Execution, Missed Execution or SSL Expiring, is in details.issue_type. An alert and its recovery have the same value, so routing and filter rules can match on it.

From the API

Create this destination with the Integrations API.