Skip to content

Move from another tool

Bring your on-call schedules, escalation policies, service routing and alert integrations from Opsgenie, Grafana OnCall or PagerDuty into Argavon, so you do not rebuild them by hand.

Per-tool details:

What an import does

An import reads the other tool's configuration, through its REST API or from a JSON file you upload, and turns it into Argavon objects:

From the other tool Becomes in Argavon
Schedules, rotations or layers, time restrictions On-call schedules with layers
Overrides that have not ended yet Schedule overrides
Escalation policies or chains Escalation policies
Services and the policy they page Escalation routes by service name
Integrations (Prometheus, Alertmanager, Grafana, Zabbix, OpenTelemetry) New sources with fresh ingest tokens

Rules that apply to every tool:

  • People are matched by email, and nobody is created. A user in the other tool is linked to the Argavon user with the same email address (case does not matter). Disabled Argavon users are not matched. Anyone without a matching account is left out of rotations and policies, and listed in the result. Invite them, then run the import again.
  • Preview first. A preview shows what would be created, updated or skipped, and why. It writes nothing. The web app only enables Import after a preview.
  • Anything Argavon cannot copy exactly appears as a warning.
  • Running it again is safe. Argavon remembers which objects each import created. A second run updates them instead of creating copies. If you deleted an imported object, the next run creates it again. Overrides and sources that were imported before are skipped.
  • The API key is used once and never stored.
  • Name clashes. If you already have a schedule or policy with the same name that the import did not create, the imported one gets the tool name added, for example Payments (Opsgenie).
  • Routes are placed so they can match. Imported routes go after your own specific routes but before a route that matches every service (* with no minimum severity). If you already have such a catch-all, an imported catch-all is not added: the preview lists it as skipped, with a warning.

A re-run overwrites edits to imported objects

A re-run replaces imported schedules and policies with what the other tool has now. If you changed an imported schedule in Argavon, a later import from the old tool undoes that change. The preview says so on each such item: "replaces changes made to it in Argavon since the last import". Once you have moved, stop importing.

You need the admin role.

Import in the web app

  1. Open Import (under Connect in the sidebar).
  2. Under From, pick Opsgenie, Grafana OnCall or PagerDuty.
  3. Choose the source:
    • Read from the ... API: paste the API key and pick the region (Opsgenie, PagerDuty) or enter the OnCall API URL (Grafana OnCall).
    • Upload an export (JSON): choose a JSON file with the tool's API objects. See the tool's page for the file layout.
  4. Click Preview. The report shows how many people were matched, a table of every object with its action (create, update or skip) and the reason, the people without an account, and the list of things that "could not be carried over exactly".
  5. Fix what you can (for example, invite missing people), and preview again.
  6. Click Import. The report title changes to Imported.
  7. If sources were created, copy each token now. The box New ingest tokens, shown only now is the only place you will see them. Point each monitoring tool at its Argavon endpoint with that token.

The History panel lists every preview and import: when, from which tool, whether it was a preview or an import, and the counts.

Import with the API

Method and path What it does
POST /api/v1/imports/{vendor}/plan Preview. Writes nothing except a history entry, which is marked as a preview.
POST /api/v1/imports/{vendor}/apply Import.
GET /api/v1/imports History, newest first, last 50 runs.

{vendor} is opsgenie, grafana-oncall or pagerduty.

The request body has these fields (no others are accepted):

Field Used with Meaning
source always api or file
api_key api The tool's API key or token
api_base api API base URL. Optional for Opsgenie and PagerDuty (selects the region), required for Grafana OnCall
data file The exported JSON object

Preview a PagerDuty import from the API:

curl -s https://argavon.com.com/api/v1/imports/pagerduty/plan \
  -H "Authorization: Bearer $NEUROOPS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"source": "api", "api_key": "'"$PD_API_KEY"'"}'

Preview from a file instead:

jq -n --slurpfile d export.json '{source: "file", data: $d[0]}' |
curl -s https://argavon.com.com/api/v1/imports/opsgenie/plan \
  -H "Authorization: Bearer $NEUROOPS_TOKEN" \
  -H "Content-Type: application/json" \
  -d @-

The answer (shortened):

{
  "vendor": "pagerduty",
  "dry_run": true,
  "users_matched": 12,
  "users_unmatched": ["dana@example.com"],
  "items": [
    {"kind": "schedule", "name": "Payments primary", "action": "create"},
    {"kind": "override", "name": "Payments primary: 2026-11-10 09:00 → 2026-11-11 09:00", "action": "create"},
    {"kind": "policy", "name": "Payments", "action": "create"},
    {"kind": "route", "name": "payments-api", "action": "create"},
    {"kind": "source", "name": "PagerDuty: payments-api / Prometheus", "action": "create", "reason": "prometheus"}
  ],
  "counts": {"schedule:create": 1, "override:create": 1, "policy:create": 1, "route:create": 1, "source:create": 1},
  "warnings": ["1 PagerDuty users have no Argavon account with the same email and are left out of rotations and policies; invite them and run the import again"]
}

kind is one of schedule, override, policy, route or source. counts keys are kind:action. When you call apply, dry_run is false, items carry the new Argavon id, and sources holds each new source with its endpoint and token. That response is the only place the tokens appear, so save them.

Run the same request against /apply to import.

Limits

  • Request body: 12 MiB.
  • Reading from an API: at most 5000 objects, 50 pages per list, 10 MB per response, and 2 minutes in total. Above that, import from a file.
  • Schedules: at most 10 layers each. Overrides longer than 90 days are skipped. Overrides that have already ended are ignored.
  • Policies: repeat at most 9 times; a wait between steps is capped at 1440 minutes (24 hours). Both are said on the item in the preview, for example "a 2880-minute step delay was shortened to 1440 (the longest Argavon allows)" or "repeats cut from 20 to 9".

After the import

  1. Open On-Call and check who is on call now for each imported schedule. Compare it with the old tool.
  2. Open Escalation and read each imported policy and the route order. Routes are matched top-down, first match wins.
  3. Send a test alert through each new source (see Send alerts).
  4. Ask everyone to set up their contact methods in My Notifications. Importers do not copy personal notification settings. See Notifications.

If it does not work

Message What to do
role '...' does not have permission; requires 'admin' or higher Ask an admin to run the import.
no importer for <vendor> (opsgenie, grafana-oncall, pagerduty) Use one of those three names in the path.
invalid request body The body is not JSON or has a field other than source, api_key, api_base, data.
source must be api or file Set source.
api_key is required Send the key with source: "api".
data is required: the exported JSON Send the file contents in data with source: "file".
data is not a <tool> export: ... The file does not have the expected layout. See the tool's page.
<host> rejected the API key (HTTP 401) or (HTTP 403) ... check the key, its permissions and the region Wrong key, a key without read access, or the wrong region (US against EU).
<host> is rate limiting the import (HTTP 429); try again in a minute Wait and retry.
more than 5000 objects; import from a file instead Export the data to a file and upload it.
could not reach <host>: ... The Argavon server cannot reach the tool's API. Check outbound network access from the server.
A person is missing from a rotation They are in "Without an account". Invite them with the same email, then run the import again.
skip with no layer has a user with a Argavon account Nobody in that schedule matched. Invite the people first.
skip with nobody it pages was imported The policy's users and schedules were all left out. Fix the schedules and users first.

Errors from the other tool's API return HTTP 502 with that tool's message in error.