# Opsgenie

## About the integration

Opsgenie is an on-call and alert management tool. Integrating Opsgenie with Sleuth is simple using an API token.

## Setting up the integration

To add the Sleuth Opsgenie integration:

* Click **Integrations** in the sidebar.
* Click the *Incidents* tab, then **add** in the *Opsgenie* card.
* Enter your API token. Ensure the token has `Read` and `Configuration Access` scopes
* If your Opsgenie instance is in Europe, enable *My Opsgenie servers are in the EU* checkbox. Leave this unchecked if you are unsure.
* Press **Save**.

## Configuring the integration

* Click **Add incident source** and select a Sleuth project that will track Opsgenie incidents. All projects within your organization will be displayed in the dropdown.

![](/files/x3eX76WLG2x55HByPIV3)

* Configure impact source first by marking if Sleuth should track Opsgenie alerts or incidents.
* If impact source will be tracking incidents (did not enable the option to track alerts), you can filter incidents by affected service.
* Configure minimum priority threshold. Any alert or incident that will have equal or higher priority will be considered a failure in Sleuth.
* Under advanced settings, you can control the historic data population. If checked Sleuth will populate all incidents that happened in the last 30 days and recalculate the project's Failure Rate and MTTR metrics.

{% hint style="info" %}
Integrations are made at the Sleuth organization level and are available for all projects within that organization. Individual settings for integration are made at the project level.
{% endhint %}

* That's it! Sleuth will now start tracking incidents or alerts affecting the selected service declared in Opsgenie.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sleuth.io/sleuth-dora/integrations-1/impact-sources/incident-tracker-integrations/opsgenie.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
