on this page

Switching toolsMoving from Opsgenie

Moving from Opsgenie

Opsgenie shuts down on 2027-04-05, and Atlassian deletes whatever hasn't moved by then. Most teams will move at their renewal or in the window they pick inside Opsgenie, so for most of them the real month is March 2027. This page covers the importer, in the web app or from ribo, which reads your Opsgenie account and builds the same setup in Tissue Mast, and what you can move by hand or as code.

Grafana OnCall OSS is a different story. The project was archived on 2026-03-24 and its cloud connection stopped the same day. There's no OnCall importer and none is planned. You can export from a still-running OnCall instance through its API and re-create by hand or through alert sources as code. The re-key checklist below applies to that path too.


The quick path: change the host and the key

Most senders can keep talking Opsgenie. Mast answers Opsgenie's alert API at https://mast.tissue.dev/opsgenie, so a tool with an Opsgenie integration moves when you change two settings: the API address, from https://api.opsgenie.com to https://mast.tissue.dev/opsgenie, and the API key, from the Opsgenie key to a Mast send key. The key goes where the Opsgenie key went, in the Authorization: GenieKey … header. Each send key pages its own alert source, so give each integration its own alert source the way it had its own key in Opsgenie.

Alertmanager

receivers:
  - name: mast
    opsgenie_configs:
      - api_url: https://mast.tissue.dev/opsgenie/
        api_key: mk_7c1a…
        priority: '{{ if eq .CommonLabels.severity "critical" }}P1{{ else }}P3{{ end }}'

Keep the trailing slash on api_url, since Alertmanager adds v2/alerts straight after it. Alertmanager uses the alert group's key as the alias, so a repeat every repeat_interval counts on the open page instead of ringing again, and the resolve closes it. api_key_file works the same as api_key. With update_alerts: true, Alertmanager's message and description updates are accepted and don't change the page.

Grafana

In the Opsgenie contact point, set Alert API URL to https://mast.tissue.dev/opsgenie/v2/alerts and API key to the send key. With Auto close on, which it is by default, Grafana closes the alert by alias when it resolves, and the page closes with it. Override priority is on by default too, so an og_priority label on the alert sets the priority (P1 pages). An alert without that label arrives as normal.

Zabbix

In the Opsgenie media type, set opsgenie_api to the full alerts URL, https://mast.tissue.dev/opsgenie/v2/alerts, and opsgenie_token to the send key. Zabbix uses the event id as the alias, so a problem opens a page and its recovery closes it, and an acknowledge in Zabbix acknowledges the page. After each call Zabbix checks the request status, which Mast answers.

Three things behave differently from Opsgenie. Mast has no notes and no unacknowledge, so an update that only adds a comment, or takes an acknowledgement back, gets a 404 and Zabbix marks that update failed. Leave those out of the action's update operations. A recovery for a page someone already closed in Mast changes nothing, and Zabbix reports that update as failed, though the page is closed either way. And the link Zabbix puts on the problem, built from opsgenie_web, points at Opsgenie, not at Mast.

Anything else, and curl

Any other tool with an Opsgenie setting for the API address takes the same base, https://mast.tissue.dev/opsgenie. Datadog's custom address isn't confirmed yet, so point Datadog at the send URL with a webhook for now. Here's the whole round trip by hand:

# open
curl -X POST https://mast.tissue.dev/opsgenie/v2/alerts \
  -H "Authorization: GenieKey mk_7c1a…" \
  -H "Content-Type: application/json" \
  -d '{"message": "db-01 replication stopped", "alias": "db-01-replication", "priority": "P2",
       "description": "replica is 900 s behind", "tags": ["db", "prod"]}'

# acknowledge
curl -X POST "https://mast.tissue.dev/opsgenie/v2/alerts/db-01-replication/acknowledge?identifierType=alias" \
  -H "Authorization: GenieKey mk_7c1a…" -H "Content-Type: application/json" -d '{}'

# close
curl -X POST "https://mast.tissue.dev/opsgenie/v2/alerts/db-01-replication/close?identifierType=alias" \
  -H "Authorization: GenieKey mk_7c1a…" -H "Content-Type: application/json" -d '{}'

Each one answers the way Opsgenie did:

{ "result": "Request will be processed", "took": 0.0, "requestId": "3f0c9a52-6b1e-4d2a-9e47-0c5b8d1f2a63" }

A missing or wrong key gets a 401 in the same shape, with a message instead of a result. The requestId is what you ask about next:

curl https://mast.tissue.dev/opsgenie/v2/alerts/requests/3f0c9a52-6b1e-4d2a-9e47-0c5b8d1f2a63 \
  -H "Authorization: GenieKey mk_7c1a…"

The answer says whether the call worked, and its alertId is the Mast message id, which close and acknowledge also take. A request id answers for a day.

What's supported

Call What Mast does
POST /v2/alerts Opens a page. message is the title and description the body
POST /v2/alerts/{alias}/close?identifierType=alias Closes the open page with that alias, like resolve=1
POST /v2/alerts/{alias}/acknowledge?identifierType=alias Acknowledges it, which stops the repeat and the escalation the same way a tap on the phone does. The incident shows it acknowledged by "Opsgenie API"
POST /v2/alerts/{alertId}/close or /acknowledge The same, by the alertId a request status answered with
GET /v2/alerts/requests/{requestId} Says what a create, close or acknowledge did, with the alert's alertId and alias
GET, POST or HEAD /v2/heartbeats/{name}/ping Pings the heartbeat with that name

Create, close and acknowledge need an ordinary alert source's key. A heartbeat's key only pings heartbeats, and an alert call made with one gets a 422. Close and acknowledge work by alias, or by id when the id is a Mast message id on the key's alert source, the alertId a request status gives you. With no identifierType, Opsgenie reads the identifier as an id, and so does Mast. Mast has no tiny ids, and Opsgenie's own alert ids mean nothing to it, so a call with identifierType=tiny, or with an id Mast doesn't know, answers 202 and changes nothing. Acknowledging or closing an alias with nothing open also answers 202. A call that changed nothing hands back a requestId like any other, but asking about it gets a 404.

An alert whose alias is the word requests can't be closed or acknowledged by alias, because /v2/alerts/requests/… is the request-status path. Opsgenie's own API has the same clash. Close it by its alertId instead.

On a create, alias is the dedupe key: the same alias while the page is open counts on it instead of opening another. details become key: value lines in the body, and tags, entity and source go in under it. responders, visibleTo, actions, note, user and any field Mast doesn't know are ignored, and a field of the wrong type never fails the send. A message or description longer than Mast keeps is cut, not refused, and an alias longer than 120 characters is stored as a hash, so it still dedupes and closes. Any other call under /opsgenie, such as adding a note, unacknowledging or listing alerts, gets a 404 whose message lists the calls above.

Priorities map like this, and the alert source's highest level still caps whatever a sender asks for:

Opsgenie Mast
P1 page
P2 loud
P3, or no priority normal
P4, P5 quiet

The endpoint shares the send URL's limits: the same 60 sends a minute per key and 600 per owner, counted together with that key's native sends, and 16 KiB a request. A request-status check counts toward those limits too, since a tool like Zabbix can ask several times about one call. A create takes up to 64 KiB, because Alertmanager writes every alert in a group into the description, and the title and body are cut to the send URL's lengths either way.

Heartbeats by name

An Opsgenie heartbeat ping goes to https://mast.tissue.dev/opsgenie/v2/heartbeats/{name}/ping and counts as a beat on the heartbeat with exactly that name. Send it with that heartbeat's own key. A key can beat other heartbeats on the same account only if its alert source has beats_any_vital turned on, which you do with PATCH /v1/mast/alert-sources/{id} and {"beats_any_vital": true}. Alert sources made before the setting existed have it on, so an Opsgenie integration key you already moved over keeps working. New alert sources start with it off, and a key without it gets the same 404 as an unknown name when it pings someone else's heartbeat. Create the heartbeat first, with the same name and interval the Opsgenie heartbeat had. A ping never creates one: an unknown name gets a 404 that says the heartbeat doesn't exist, which is also what a name that belongs to an ordinary alert source gets. A heartbeat paused over the plan's cap answers 403, the same as a native beat. A ping over the rate limit still counts as a beat, at most once every 15 seconds, and answers 429, so a burst of alerts on the same key can't make the heartbeat go late.

curl https://mast.tissue.dev/opsgenie/v2/heartbeats/nightly-backup/ping -H "Authorization: GenieKey mk_5f30…"

For the long run, the native send URL is still the one to move to, since it takes every Mast field, including the ones Opsgenie's request has no room for.

There's no Opsgenie export file

Opsgenie has no button that downloads your configuration. Everything that leaves it, users, teams, schedules, escalations, integrations and heartbeats, comes out through its REST API. So that's what the importer reads, and what a script of your own would read.

You need an API key from Opsgenie's Settings › API key management with Read and Configuration access. Those two rights can read the configuration and can't touch alerts. A key works only in its own region: US accounts are on api.opsgenie.com and EU accounts on api.eu.opsgenie.com.

What Mast has for each part

The importer does all of this for you, and the importer section says how it maps each part. This is what it maps onto, if you'd rather do it by hand.

Free has one rotation and one policy of two steps, for up to 5 people. Team and Company have no cap on people, rotations or policies, and a policy holds up to 50 steps. On every plan one step rings at most 25 people at once (2 on Free) and steps are at least a minute apart. The pricing page has the full numbers. Plan for them before you move, because a policy past the cap is paused, and a paused policy pages everyone.

  • People. Invite each person from Members in the web app, using the email address Opsgenie has for them. The importer matches people by exact email and offers to invite the ones it can't find, so doing this early saves a step later. Each person installs the app and links a phone. Someone with no linked phone can't be on a rotation.
  • Alert sources. Create one alert source per Opsgenie integration, in the web app or as a catalogue file with alert sources as code. A catalogue gets you every alert source and its URL in one run, and the URLs are what the senders need.
  • Rotations. On call takes a rotation that hands off every day, every week on a day you pick, every two weeks, or after a custom length of 1 to 720 hours, at a time and zone you pick. Opsgenie's hourly rotations and its custom lengths in hours or days become a custom length: 12 hours, or 72 for a 3-day rotation. The first person in the list is on call from the day you create it, so put the person who's on in Opsgenie first. Overrides can be whole days or start and end at a time, so a four-hour swap in Opsgenie moves over as a four-hour override.
  • Escalation policies. Each Opsgenie escalation becomes a list of steps. A step can page whoever is on call for a rotation, the next person on it, one person, everyone, or another alert source, each after its own wait. Opsgenie's "repeat the policy" setting maps to going round again, up to 10 more times, with a wait before each round.
  • Heartbeats. Each Opsgenie heartbeat becomes a heartbeat with the same interval. The job that pinged Opsgenie can keep pinging by name through the quick path, or ping the heartbeat's own URL.

What doesn't carry over

Some of this is the same for any tool you move to, and some of it is a gap in Mast you should know about before you start.

  • Integration keys. An Opsgenie API key is a credential for Opsgenie, and it stays there. Every monitor, script and pipeline that posted to Opsgenie needs a Mast send key, either in the GenieKey header on the quick path or as part of the send URL.
  • Time-restricted and layered rotations. A rotation that's on only from 09:00 to 17:00 has no equivalent, so Mast keeps it on around the clock and the importer says so. Two rotations layered on one schedule become two separate rotations.
  • Escalation to a team or to admins. Mast steps page a rotation, a person, everyone or an alert source. Point the step at the team's rotation instead.
  • Per-person notification rules. A person's own "SMS after 5 minutes, then call" rules have no equivalent. Mast pages the phone through push, and a policy step with Call ticked phones everyone it reaches who has confirmed a number (phone calls). There's no SMS or email paging.
  • Integration filters and actions, including creating a Jira issue. A webhook destination can call your own endpoint when a page opens, is acknowledged or is resolved.
  • Historical alerts. Closed alerts, notes and the acknowledgement history stay in Opsgenie. Export what you want to keep through Opsgenie's alert API before the shutdown. Nothing on the Tissue Mast side reads them.

Moving to the send URL

The quick path gets you off Opsgenie. The send URL is where a sender ends up, and you can move each one when it suits you. It takes Mast's own fields (title, body, key, priority=page) rather than Opsgenie's, so it's a change to the request body as well as the address.

  • Anything with a generic webhook or a shell step posts to the send URL. Closing a page from the monitor that opened it shows an Alertmanager webhook receiver that opens and closes a page with the alert's fingerprint as the key.
  • Opsgenie's alias becomes Mast's key. Send the same key on the recovery with resolve=1 and the page closes.
  • Priorities map the same way as on the quick path: P1 to page, P2 to loud, P3 to normal, and P4 and P5 to quiet. The send URL reads priority=P1 to P5 the same way, along with the other priority names other tools use.
  • Anything that sent email to an Opsgenie address needs a real change, since Mast has no email ingest. A curl in the same cron line is the usual replacement.

The re-key checklist

This is the list of everything that pointed at Opsgenie and has to point at Mast instead. The importer prints it when it finishes, one line per alert source, with the send URL, the Opsgenie address and the key. If you moved by hand, it's a table you keep yourself, filled in from Opsgenie's integration list:

integration                    opsgenie key        new mast key or URL
Prometheus (prod)              ge2…b41  (revoke)   mk_7c1a…  on mast.tissue.dev/opsgenie/
Datadog                        a90…f02  (revoke)   https://mast.tissue.dev/mk_2e9d…
backup-cron (email)            ops+backup@…        https://mast.tissue.dev/mk_5f30…/fail

Work through it in this order:

  1. Move the senders first, while Opsgenie still takes alerts, and send to both for a few days so you can compare. Alertmanager does this with a second receiver and continue: true.
  2. Send one test page per alert source from the sender itself, not from curl on your laptop, and watch it land on the phone that should get it.
  3. Check the rotation in the app for the coming weeks, against who Opsgenie has on call. A person without a linked phone shows up there as a gap.
  4. Revoke the Opsgenie keys once every sender has moved. A key left live is a monitor that still pages the wrong place.

Send URLs are readable back from GET /v1/mast/state at any time, so the table is a convenience, not the only copy.

The importer

The importer is in the web app under On call, as Import from Opsgenie. You need to be the account's owner or an admin. Paste an API key made as described above, pick the region, US or EU, and press Read Opsgenie. Mast reads your configuration through Opsgenie's API, uses the key for that request only and keeps no copy, not in its records, its logs or the account's activity. Delete the key in Opsgenie when you're done.

The first read is a dry run and changes nothing. It's open on every plan, Free included, so you can see what a move involves before you pick one. It lists every rotation, escalation policy, alert source and heartbeat Mast would make, and for each one whether it's new, changes something that's already there, is already the same, is left out, or doesn't fit the plan. A change lists each field with its old and new value. Everything that doesn't fit the plan stays on the list, marked over plan, so nothing goes missing without a line saying so. A trial of Team or Company covers rotations and policies.

Above the lists, the dry run sums up the move:

  • Headcount. Every Opsgenie user counts, whether or not they're on a schedule or an escalation, because Mast counts every member and open invite. Only Free has a limit on that count, of 5. It says how many are already members here, how many have an open invite, how many are left to invite, and what the account's headcount would be with all of them invited.
  • Teams. How many Opsgenie teams the key can see, and how many schedules and escalation policies belong to each. Ones with no team are counted on their own line.
  • Texts and calls. How many people, and what share of everyone, get an SMS or a phone call from Opsgenie when an alert opens. Mast doesn't text, and it calls only from a step with Call ticked, once each person has added and confirmed their own number, so these are the people to talk to before the switch. Reading this takes one Opsgenie call per person plus one per switched-on new-alert rule, stopping at the first one that texts or calls, and at most 1,000 calls in all. Only the dry run reads them; the import itself doesn't. Past that, or if Opsgenie refuses one, the dry run says how many people it managed to check. Mast keeps the contact method and never the phone number.
  • The plan it needs. The smallest Mast plan that holds that headcount, the rotations, the escalation policies, the steps in the longest one and the overrides on the busiest rotation, with its monthly price. It doesn't count alert sources and heartbeats, since those are left out one by one instead of blocking the move.

Untick anything you don't want, then press Import the items ticked. Mast reads Opsgenie again at that moment and imports what's ticked, so a change made in Opsgenie in between is picked up. If something fails partway, the result says what went through and what didn't, and running the import again finishes the job. Everything is matched by name, so a second run changes what's there instead of making copies. That also means you can run it again on the day you switch, after a last round of changes in Opsgenie.

People

The importer never invites anyone on its own. It lists everyone in Opsgenie and matches each one to a member of this account by email address, ignoring case. Someone with an invite already open is marked invited. Everyone else gets a tick box, unticked, and the box at the top of the column ticks them all. Invite sends each person ticked a normal member invite, as a developer or an admin. On Free, invites count against the plan's 5 people. An account can send at most 20 an hour. Sending the same list again is safe: anyone already invited is skipped.

Someone who isn't on the account yet is left out of their rotations and escalation steps, and the dry run names them on each one. Once they've joined, run the import again and it puts them back.

How each part maps

  • Teams. An Opsgenie schedule, escalation or integration that belongs to a team gets the team's name in front: the Platform team's "Primary" schedule becomes Platform / Primary. One that belongs to no team keeps its own name. Alert source names are lowercase and can't hold a slash, so the Platform team's Datadog integration becomes the alert source platform - datadog.
  • Schedules. Each rotation in a schedule becomes its own Mast rotation, named <schedule> / <rotation>, so a schedule with two layers becomes two rotations. Daily stays daily. Weekly hands off on the same day and at the same time, in the schedule's zone. Every two weeks stays every two weeks. Hourly rotations, rotations measured in days and other weekly lengths become a custom length in hours, up to 720, and a longer one is left out with a note. A time restriction, such as only 08:00 to 20:00, is dropped, so the rotation is on around the clock, and the dry run flags it. Mast starts each rotation with whoever is on call in Opsgenie right now, so nobody's turn moves on the day you switch. Disabled schedules aren't imported.
  • Overrides. Overrides that haven't ended yet come across as timed overrides in the schedule's zone. Ones that are already over are skipped.
  • Escalations. Each rule becomes a step after the same delay. A rule that notifies whoever is on call becomes a step for that rotation, "next" pages the next person on it, "all" becomes a step that pages everyone on the account. Mast has no step for everyone on one rotation, and the dry run says so. A rule for one user pages that person. Opsgenie's "previous" and rules that notify a team or another escalation get the closest Mast step, and the dry run says which. "Repeat" carries over as going round again, up to 10 times, with the same wait. Mast steps stop as soon as someone acknowledges, so a rule that waits for the alert to be closed is flagged.
  • Integrations. Each enabled integration becomes an alert source with its name. If the integration's responders include an escalation, the alert source gets that policy. Disabled integrations are listed and not made. Email integrations are listed and not made, since Mast has no email ingest.
  • Heartbeats. Each enabled heartbeat becomes a heartbeat with the same name, in lowercase, and the same interval. A paused one is listed and not made.

When the import finishes, it prints the re-key list: every alert source with its URL, and the Opsgenie address with the key to use on the quick path. The key is the whole secret, so treat the list like a password.

Terraform

The import also gives you a Terraform import block for everything it made or changed, so you can bring the result under the tissue Terraform provider without looking up a single id. In the web app they're under the re-key list, with Copy and Download buttons. Each block names the resource and the id the provider imports it by:

import {
  to = tissue_mast_rotation.platform_primary
  id = "sc_4b1e…"
}

import {
  to = tissue_mast_override.platform_primary_override_1
  id = "sc_4b1e…/ov_92d0…"
}

The resource name comes from the Mast name, lowercased, with anything that isn't a letter or digit turned into an underscore. Two names that come out the same get _2, _3 on the end. Put the blocks in a .tf file and run terraform plan -generate-config-out=mast.tf, and Terraform writes the matching resources for you. Something the import left alone because it was already the same gets no block, and when you run it again an override only gets one if that run added it.

Mast has nowhere to put these, so the importer leaves them in Opsgenie and lists them once: notification rules, routing rules, alert policies, maintenance, services, incidents and alert history.

From the command line

ribo 2026.10.0 or later runs the same import from a terminal. It reads Opsgenie from your machine and sends Mast what it read, so the key never reaches Tissue at all:

export OPSGENIE_API_KEY=…           # or leave it unset and ribo asks, without echoing
ribo mast import opsgenie           # the dry run: prints the plan
ribo mast import opsgenie --apply   # imports it and prints the re-key list
ribo mast import opsgenie --invite  # prints the plan and invites everyone not on the account
ribo mast import opsgenie --apply --terraform-file mast-imports.tf

Add --region eu for an account on Opsgenie's EU instance, and --json for the plan or result as the server sent it. There's no flag for the key, so it stays out of your shell history, and ribo never prints it. From ribo, --apply imports everything that fits the plan. To leave items out, use the web app. Either one can run again later, since both match by name.

--invite invites every Opsgenie user who isn't a member and has no open invite, as a developer, or as an admin with --role admin. It goes through POST /v1/mast/import/opsgenie/invite, which takes a list of up to 100 addresses and answers with what happened to each: invited, already a member, already invited, not an address, over the plan, or held back by the hourly limit. On Free it stops at the plan's 5 people, members and open invites together, and anyone it couldn't send to goes out when you run it again. Without --apply that's all it writes. Inviting someone gives them a place on the account, so with an API token the route needs the account:write scope, which only the owner can grant. Signed in, an owner or an admin can use it as they are, from ribo or the web app.

After --apply, ribo prints the Terraform import blocks under the re-key list, and --terraform-file writes them to a file as well. ribo mast has the rest.

An importer that reads from Jira Service Management Ops, for teams that have already moved there, is coming soon.