Skip to main content
Import your Backstage software catalog into incident.io, bringing components, systems, and the groups that own them into Catalog. Ownership comes across with them, so you can route an alert for a failing component to the team that owns it, and use your Backstage groups as your incident.io teams. Backstage syncs through the catalog importer, our open-source CLI. It ships with a Backstage template that creates the catalog types below. You run it on a schedule, in CI or your own infrastructure, so it can reach Backstage inside your network.

What gets imported

The template creates these catalog types, each from a Backstage kind or one of its fields. API and Resource entities are off by default, because large catalogs can hold hundreds of thousands of them. Turn them on when you need them (see Choose what to import). Entities keep their relationships to one another:
  • Components: link to the group that owns them, their system, and the components they depend on
  • Systems and Domains: link to their owning group, and systems to their domain
  • Groups: link to their parent group, their Backstage users, and those users’ incident.io accounts
  • Users: link to the groups they belong to, and to their incident.io user
Use these attributes anywhere Catalog is available, including alert routing, workflows, and custom fields.

Set up the sync

You need a machine that can reach both Backstage and incident.io, and an incident.io API key with the View catalog types and entries and Manage catalog types and edit catalog data permissions. Create one in Settings → API keys.
1

Install the importer

Binaries for Linux and macOS are on the releases page, and the incidentio/catalog-importer Docker image works anywhere Docker does.
2

Copy the Backstage template

Run catalog-importer init, choose Backstage, and pick where to put it. It creates a backstage directory: run the remaining commands from inside it. The template comes with example entities, so you can try a sync straight away:
3

Connect it to Backstage

In importer.jsonnet, swap the local source for the backstage source below it, and point it at your Backstage’s /api/catalog/entities/by-query endpoint:
filter: kinds.filter fetches only the kinds you import. See Authentication for the token.
4

Preview, then sync

The dry run lists every type and entry it would create, change, or delete. Your Backstage entities replace the examples.
5

Run it on a schedule

Each run syncs once and exits, so schedule it to keep incident.io in step with Backstage. Hourly suits most teams. Deploying has examples for GitHub Actions, CircleCI, GitLab CI, a Kubernetes CronJob, and cron with Docker.
Once a type is managed by the importer, incident.io links it back to your config and stops it being edited in the dashboard, so the config stays the source of truth. This works the same way as managing types in GitHub.

Authentication

Backstage asks callers from outside it for a token. Configure the importer to match your Backstage: The template’s README has a config example for each, and Sources lists every option.

Choose what to import

kinds.libsonnet lists the Backstage kinds to import. Component, System, Domain, Group, and User are on by default: everything you need to route to the team that owns a service. To import API or Resource entities, uncomment them there. The same list sets the Backstage filter, the catalog types, and the attributes that link them, such as Provides APIs on components. To narrow what comes in further, add conditions to the Backstage filter, such as metadata.namespace=default, or a JavaScript filter on an output, such as only groups whose type is team. Filtering in Backstage is faster, because excluded entities are never fetched. See Choose what to import in the template.

Use Backstage Groups as your teams

Make Backstage Group your team type, and each group becomes a team in incident.io: you can link schedules and escalation paths to it, filter incidents and alerts by it, and route alerts to it. See Setting up teams for everything teams power. The template sets Backstage Group up for this, with three attributes teams need:
  • Members: the incident.io users in the group, worked out from each Backstage user’s groups and email address
  • Escalation paths: the escalation paths that page the team, which you fill in from incident.io
  • Parent: the group above it, if you want a team hierarchy
After your first sync:
  1. Go to Settings → Teams and open the Configuration tab
  2. Set Team type to Backstage Group. Members and Escalation paths switch to Backstage Group → Members and Backstage Group → Escalation paths
  3. Optionally, set Parent teams to Backstage Group → Parent
  4. Click Save
Your Backstage groups now appear wherever you pick a team, including when you link a schedule or escalation path to a team.
If you already have a team type, changing it clears the team set on your schedules, escalation paths, alert sources, alert routes, and API keys, so you’ll need to link them again. You’re asked to type your organization’s name to confirm.
Keep the Members and Escalation paths attributes in your importer config once Backstage Group is your team type. incident.io stops a sync that would remove them or change their type, because teams depend on them. See Attributes that power teams. Each sync updates the groups, users, and memberships from Backstage. You don’t need to repeat any of the steps above.
  • Members follow Backstage. When someone joins or leaves a group in Backstage, the next sync updates the team.
  • Escalation paths and schedules you link to a team belong to incident.io, not Backstage. The importer never overwrites them, so they survive every sync.
  • Renaming a group’s display name in Backstage renames the team and keeps its links. Entries are matched on their Backstage namespace and name, so changing metadata.name makes a new team instead.
  • Removing a group from Backstage, or filtering it out of the import, archives the team on the next sync, so it stops appearing in incident.io. If the group comes back with the same namespace and name, the team comes back with its links to schedules and escalation paths.
A Backstage user only counts as a team member once they have an incident.io account with the same email address.

Route alerts with an on-call team

Ownership in Backstage doesn’t always match who’s on call. If you record an on-call team on each component, for example in an annotation, you can import it and route alerts with it. Say your components carry an annotation naming the group that’s paged for them:
1

Import the annotation

In pipelines/entries.jsonnet, the Component output has an On-call team attribute commented out. Uncomment it and set the annotation name:
After the next sync, each component links to its on-call group.
2

Give alerts a component

In Settings → Alert attributes, add an attribute called Component of type Backstage Component. Then set it in your alert source from the alert’s payload, such as a service tag. See Attributes, tags and priority.
3

Escalate to the on-call team

In your alert route’s escalation settings, choose to escalate using the alert’s attributes to an escalation path, then pick the Component → On-call team → Escalation paths suggestion. Each alert now pages the team on call for its component.

Remove a kind you imported by mistake

If you imported a kind you don’t want, such as tens of thousands of APIs, delete its catalog type rather than its entries. Take the kind out of kinds.libsonnet, then sync with --prune:
--prune deletes any catalog type this config created but no longer includes. incident.io removes the type straight away and archives its entries in the background, so this finishes quickly however large the type is.
Don’t remove a large type’s entries by filtering them out and syncing. The importer then deletes them one by one, which can take hours.

FAQs

You run the catalog importer yourself, because Backstage is usually inside your network. Schedule it in CI, as a Kubernetes CronJob, or with cron. See Deploying.
Check the dry run output for the Backstage Group and User types. If your config came from an older template, its filters may only accept backstage.io/v1alpha1, but Backstage also allows backstage.io/v1beta1 for groups and users. The current template matches on kind alone.
Schedules and escalation paths link to teams, so Backstage Group needs to be your team type. See Use Backstage Groups as your teams.
Usually because it imports a kind with a lot of entities, most often API. Check kinds.libsonnet and the filter on your Backstage source, and turn off kinds you don’t use. See Remove a kind you imported by mistake to clean one up.
Yes. Use https://api.roadie.so/api/catalog/entities/by-query as the endpoint, with a Roadie API token and sign_jwt: false.
Types managed by the importer are owned by your config, so the dashboard links to your repository instead of letting you edit them. Change the config and run a sync. Escalation paths on Backstage Group are the exception: you set those in incident.io.
Yes. Outputs select entities with a filter that runs against the raw entity, so any Backstage kind works, including your own custom ones.
The Backstage User type maps the profile email to an incident.io user, so anyone whose Backstage email matches their incident.io account is linked automatically. See connected users.