Keep your Opsgenie integration: point Alertmanager or Grafana at Amonit
Amonit team · Published · Updated
Short answer: Amonit accepts the part of Opsgenie’s alert API that Alertmanager and Grafana use. Create an integration of type Opsgenie compatible, then change two settings in your existing setup: the API URL and the API key. Alerts open, repeat, take their priority and close in Amonit, as they did in Opsgenie. We verified this with Prometheus Alertmanager 0.35.1 and Grafana OSS 13.3.2 on 5 December 2026.
1. Create the integration
In your instance, an admin opens Integrations → Add Integration, picks the type Opsgenie compatible and a team, and saves. The integration’s page shows the API URL and the key to use.
Create one integration per team. Amonit ignores Opsgenie’s responders, and sends every alert from an integration to that integration’s team, so the integration takes the place of responders.
2. Alertmanager
Change api_url and api_key in your opsgenie_configs. Keep the final slash in the URL:
receivers:
- name: on-call
opsgenie_configs:
- api_url: "https://yourteam.amonit.dev/api/opsgenie/"
api_key: "<key from the integration's page>"
send_resolved: true
Your message, description, priority, tags and details templates keep working. If you set opsgenie_api_url and opsgenie_api_key under global, change them there instead.
To run both side by side first, keep your Opsgenie entry and add a second one, because opsgenie_configs is a list:
receivers:
- name: on-call
opsgenie_configs:
- api_key: "<opsgenie-key>" # Opsgenie, unchanged
- api_url: "https://yourteam.amonit.dev/api/opsgenie/"
api_key: "<key from the integration's page>"
Check the file with amtool check-config alertmanager.yml before you reload.
3. Grafana
In your Opsgenie contact point:
- Alert API URL:
https://yourteam.amonit.dev/api/opsgenie/v2/alerts - API key: the key from the integration’s page
- Auto close: on, so the alert closes when the rule recovers
- Override priority: on, if your rules set an
og_prioritylabel
Grafana’s default alert title is long. For a message people can read on a lock screen, set the contact point’s Message, for example to {{ .CommonLabels.alertname }}: {{ .CommonAnnotations.summary }}.
4. Test
Send one alert, check that the right person is paged, and let it resolve.
amtool alert add alertname=OpsgenieSwitchTest severity=critical \
--annotation=summary="Testing the Opsgenie-compatible path" \
--alertmanager.url=http://localhost:9093
Check Alertmanager’s log after you change the key. With a wrong key, Amonit answers 401, and Alertmanager logs Notify failed … reason=authError and doesn’t retry, so a typo means alerts are silently not delivered.
What happens to each part of an alert
| Opsgenie field | In Amonit |
|---|---|
message |
The alert’s title, kept up to 1,000 characters |
alias |
Deduplication. While an alert with that alias is open, the same alias only raises its counter and pages nobody again |
priority |
P1 to P5. Anything else becomes P3 |
description, details, source, entity, note |
Kept on the alert page |
tags |
Kept on the alert page, up to 20. They don’t route or filter anything |
responders, visibleTo, actions, user |
Ignored. The integration’s team gets the alert |
| Close | Resolves the alert and stops the escalation |
| Acknowledge | Acknowledges the alert |
What we observed with the real tools:
- Repeat: Alertmanager re-sending the same alert after
repeat_intervaldoesn’t open a new alert or page again. - Groups: Alertmanager sends one Opsgenie alert per group, so two firing alerts in one group are one Amonit alert. It closes when the whole group has resolved.
- Firing again after a resolve opens a new alert.
- With
update_alerts: true, Alertmanager also sends message and description updates. Amonit accepts them and doesn’t change the alert.
Limits
- Other parts of Opsgenie’s API (reading alerts, notes, tags, requests) answer
404. Tools that need them won’t work. - Opsgenie’s Heartbeat API works with the same integration key: see Heartbeats.
- Tested with Prometheus Alertmanager 0.35.1 and Grafana OSS 13.3.2. Grafana Cloud and other tools that send to Opsgenie weren’t tested. Anything that sends Opsgenie’s Create Alert to a URL you can set should work, but check it with a test alert.
- Nothing here ran against a live Opsgenie account. It’s about the tools that send to Opsgenie, not Opsgenie itself.
- People, teams, schedules and escalation policies aren’t moved by this. Set them up in Amonit: schedules, escalation.
For the step-by-step move, see Moving off Opsgenie. For other sources, see Alertmanager and Grafana with a webhook.
Checked against the product on 5 December 2026. Corrections: [email protected].