Migrating from Opsgenie
Keep your Alertmanager and Grafana rules. Swap one URL and one key.
Opsgenie's REST APIs stop working on April 5, 2027. treason.app serves a compatible API, so tools that page through Opsgenie keep working after you change the URL and the key.
#The short version
- In the dashboard, Integrations → Add source → Opsgenie-compatible API, pick the team, and copy the key (shown once).
- Change the tool's URL and key:
receivers:
- name: oncall
opsgenie_configs:
- - api_key: <opsgenie key>
- api_url: https://api.opsgenie.com/
+ - api_key: <treason key>
+ api_url: https://compat.treason.app/For Grafana, change the Alert API URL the same way.
#Or point the tool straight at us
You do not have to keep speaking Opsgenie. Datadog, Grafana, Alertmanager, Sentry, CloudWatch, Google Cloud Monitoring and Azure Monitor can post their own payloads to a native endpoint, which also gives you recovery-closes-alert and per-source priorities without the Opsgenie shim. See Alert sources. The compatible API is the fastest way to keep everything working on day one; the native endpoints are where you end up.
#What is supported
| Opsgenie endpoint | Behaviour |
|---|---|
POST /v2/alerts | create, or de-duplicate by alias |
POST /v2/alerts/{id}/close | by id, tiny or alias (identifierType) |
POST /v2/alerts/{id}/acknowledge | stops escalation |
POST /v2/alerts/{id}/notes | adds a note |
GET /v2/alerts/requests/{requestId} | processing status and alert id |
Requests are asynchronous and answer 202 with a requestId, as Opsgenie's do. Authentication is Authorization: GenieKey <key>.
We never reject a sender over a field we do not support yet: it is stored and ignored. Over-long text is shortened, not refused, so a page is never lost to a cosmetic limit.
#Importing teams, schedules and policies
The importer reads your teams, schedules and escalation policies through Opsgenie's REST API (scripts/import-opsgenie.ts) and rebuilds them. Anything it cannot map is listed, not silently dropped. Run it before the cut-over, check the result in the dashboard, then swap the keys.
#After the move: the v1 API
The compatibility API is for migration. For new code use the v1 API and the SDK: it has a real resource model (/v1/alerts, /v1/oncall, /v1/heartbeats), idempotency keys, scoped keys, and every field documented in the API reference.
#What has and has not been verified
The importer and the compatible API are tested against responses written from Opsgenie's documented API. They have not been run against a real Opsgenie account, because Atlassian no longer sells Opsgenie, so there is no account to test with. Treat the first import as a dry run: read the report of what it could not map, and compare who is on call in both systems at a few times (including a daylight-saving change) before you cut over. If you are an Opsgenie customer migrating and can share an anonymised export, that is the most useful thing you can give us.
The importer does not bring over notification rules, routing rules, maintenance windows or heartbeats; recreate those with noise control and heartbeats, or in a config file.