How to replace opsgenie_configs in Prometheus Alertmanager
Amonit team
Short answer: add the new tool to the same receiver that holds your opsgenie_configs, so that every alert goes to both. Run them side by side for at least a week, then delete the opsgenie_configs block. A receiver can hold one or more notification integrations, so you don’t have to touch your routing tree at all. Opsgenie shuts down on 5 April 2027.
Disclosure: we build Amonit, an on-call tool. The steps below work with any tool that has an Alertmanager receiver or accepts a webhook.
Step 1: add the new tool next to Opsgenie
Your receiver probably looks like this today:
receivers:
- name: on-call
opsgenie_configs:
- api_key: "<opsgenie-key>"
priority: '{{ if eq .CommonLabels.severity "critical" }}P1{{ else }}P3{{ end }}'
Add the new integration to the same receiver:
receivers:
- name: on-call
opsgenie_configs:
- api_key: "<opsgenie-key>"
priority: '{{ if eq .CommonLabels.severity "critical" }}P1{{ else }}P3{{ end }}'
webhook_configs:
- url: "https://new-tool.example.com/alertmanager/<token>"
send_resolved: true
Use pagerduty_configs or incidentio_configs instead of webhook_configs if that’s where you’re going. Alertmanager’s integrations page lists tools that accept its webhook.
We checked these configs as YAML and against Alertmanager’s docs, but haven’t run them through amtool. Validate your file before you reload:
amtool check-config alertmanager.yml
curl -X POST http://localhost:9093/-/reload
Because the receiver name didn’t change, your routes stay as they are.
Step 2: map what your Opsgenie block did
Each field in opsgenie_config did a job that now has to happen somewhere else.
opsgenie_configs field |
What it did | What to check in the new tool |
|---|---|---|
api_key |
Chose the Opsgenie team or integration | Each webhook URL or key belongs to one team or service. Do you need one per team? |
message |
Alert text, up to 130 characters | How does the tool build its title? Does it read alertname and summary? |
priority |
P1 to P5, often from a template | Does the tool read the severity label, or do you need a template? |
responders |
Who gets notified | This usually moves into the tool’s escalation policy. |
tags |
Labels for filtering | Are labels kept and shown on the alert? |
Also look for what isn’t in the block:
- Opsgenie alert policies and integration rules that filter, route or change priority. These live in Opsgenie, not in
alertmanager.yml, so they’re easy to forget. - Opsgenie heartbeats. If you ping one from a
Watchdogalert, you need a replacement before you switch. Amonit has heartbeats and answers Opsgenie’s Heartbeat API, so the ping only needs a new URL and key. global.opsgenie_api_keyandopsgenie_api_url. Remove them at the end. EU accounts often set the URL tohttps://api.eu.opsgenie.com/.
Step 3: test both paths
amtool alert add alertname=MigrationTest severity=critical \
--annotation=summary="Testing the new on-call path" \
--alertmanager.url=http://localhost:9093
Check these in the new tool:
- The alert arrives after
group_wait(30 seconds by default). - The title and priority make sense when read on a phone.
- The right person is notified, at the minute you expect.
- When you stop the alert, it closes by itself. Alertmanager’s webhook sends resolved notifications unless you turn
send_resolvedoff. - A phone that’s asleep actually rings.
Alertmanager sends grouped alerts as a batch, so also check how the tool handles a group of several alerts.
Step 4: run both for a week
Warn people that they’ll get two notifications and agree which tool they acknowledge in. Acknowledging in one doesn’t acknowledge in the other. Live through at least one hand-off before you remove anything.
Step 5: remove Opsgenie
receivers:
- name: on-call
webhook_configs:
- url: "https://new-tool.example.com/alertmanager/<token>"
send_resolved: true
Run amtool check-config again, reload, and search your repositories and Helm values for opsgenie so that no other Alertmanager still points there.
With Amonit
Amonit takes Alertmanager’s webhook directly. The setup guide covers the URL, the bearer-token variant and how the severity label maps to a priority: critical is P1, error or high is P2, warning is P3, info is P5, and anything else is P3. Plan to rebuild your schedules and escalation policies in the new tool. Try it free for 30 days: www.amonit.dev/signup. What Amonit does for teams leaving Opsgenie is on one page.
Facts checked 2 December 2026. Corrections: [email protected].