> ## Documentation Index
> Fetch the complete documentation index at: https://docs.incident.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrating from PagerDuty

> Move your PagerDuty routing onto alert rules, so every alert still reaches the right team.

> [!NOTE]
>
> Alert rules are in beta and replace [alert routes](https://docs.incident.io/on-call/alert-routing). We're turning them on for some
> organizations first, and details may change. Get in touch if you'd like early access!

When you move from PagerDuty, our import tools bring across your schedules, escalation policies and notification rules. You then write [alert rules](https://docs.incident.io/on-call/alert-rules) to decide which alerts page which escalation paths. In PagerDuty, services and event rules do this job. This page maps PagerDuty's routing onto alert rules, then walks through the migration in order.

For every migration tool, including mirroring schedules back into PagerDuty while you test, see [migrate from PagerDuty](https://docs.incident.io/getting-started/migrate-from-pagerduty.md).

> [!NOTE]
>
> These steps are for organizations on alert rules only. While your organization is shadowing, your alert routes still
> decide what happens to each alert, and your rules are copied from them. See [migrating from alert
> routes](https://docs.incident.io/on-call/alert-rules/migrating-from-alert-routes.md).

## How PagerDuty maps to alert rules

| In PagerDuty | In incident.io |
| - | - |
| Service | An [alert attribute](https://docs.incident.io/on-call/alert-attributes), such as Service or Team, set by your alert source |
| Integration on a service | An [alert source](https://docs.incident.io/on-call/alert-sources) |
| Escalation policy | An [escalation path](https://docs.incident.io/on-call/escalation-paths.md), imported from PagerDuty |
| Team | A team of your team type, which can be your PagerDuty teams |
| Event rules and Event Orchestration | Conditions in your alert rules, and attributes and priority set by your alert source |
| Urgency, and support hours | The alert's [priority](https://docs.incident.io/alerts/priorities.md), and the urgency and working hours set on each escalation path |
| Alert grouping on a service | Team grouping, or the default grouping. See [grouping with alert rules](https://docs.incident.io/alerts/grouping-alerts.md#grouping-with-alert-rules) |

### Services

In PagerDuty, an alert's service decides which escalation policy it pages. With alert rules, an alert's team decides which rules run, and those rules decide who's paged. Most organizations start with one default rule that escalates to the escalation path of the alert's team, so you don't need a rule per service.

Every alert needs a team. When PagerDuty is connected, your PagerDuty services sync into the Catalog with their escalation policy and owning teams, so you can match an alert's service to its team.

> [!WARNING]
>
> Team rules only run for an alert with exactly one team. If you take the team from a PagerDuty service that more than
> one team owns, the alert has several teams and runs the [default rules](https://docs.incident.io/on-call/alert-rules#default-rules) instead.

### Event rules and Event Orchestration

Map each kind of rule to the place that does the same job:

| A PagerDuty rule that | Becomes |
| - | - |
| Sets fields on an event, such as its severity or a custom field | [Attribute extraction](https://docs.incident.io/on-call/alert-attributes#extract-attributes-from-sources) or [priority](https://docs.incident.io/alerts/priority-routing.md) in your alert source |
| Routes an event to a service | Conditions in your alert rules, or the team attribute your alert source sets |
| Suppresses an event | A branch with conditions and no actions. Alerts that match it skip the rest of that block |

### Urgency

PagerDuty pages at high or low urgency, set on the service or by an event rule. In incident.io, an alert has a priority, and each level of an escalation path chooses whether to notify with high or low urgency. PagerDuty uses support hours to page differently by time of day. In incident.io, branch the escalation path on priority and working hours. See [smart escalation paths](https://docs.incident.io/on-call/escalation-paths.md).

## Migrate step by step

**1. Connect PagerDuty**

Connect the [PagerDuty integration](https://docs.incident.io/integrations/pagerduty.md). Your PagerDuty services, teams, users, escalation
policies and schedules sync into the Catalog, and we link PagerDuty users to incident.io users where we can.

**2. Choose your team type**

Alert rules belong to teams, so set up your teams first. See [setting up teams](https://docs.incident.io/catalog/teams.md). In the PagerDuty
integration's settings, **Migrating from PagerDuty?** offers to use your PagerDuty teams as your team type. With
PagerDuty teams as your team type, schedules and escalation paths you import from PagerDuty are owned by the teams
that own them in PagerDuty.

**3. Import schedules and escalation policies**

Import your PagerDuty escalation policies as escalation paths, along with the schedules they use. See [importing
from PagerDuty and Opsgenie](https://docs.incident.io/on-call/import-pagerduty.md). Imported paths aren't connected to any alerts yet, so
nobody is paged.

**4. Import notification rules**

Bring across each person's notification rules, in bulk or one at a time. See [importing notification rule
settings](https://docs.incident.io/getting-started/migrate-from-pagerduty.md#importing-notification-rule-settings).

**5. Send alerts to incident.io with a team**

While you test, you can [connect PagerDuty as an alert
source](https://docs.incident.io/getting-started/migrate-from-pagerduty.md#pagerduty-alert-source), so alerts flow from your monitoring tools
through PagerDuty to incident.io. Make sure every alert source sets the alert's [team
attribute](https://docs.incident.io/alerts/team-routing.md), whether from the payload or from the alert's service.

**6. Write your rules**

Under **On-call → Alert routing → Rules**, add a block to the [default rules](https://docs.incident.io/on-call/alert-rules#default-rules)
that escalates to the escalation path of the alert's team. Add [required rules](https://docs.incident.io/on-call/alert-rules#required-rules)
for anything every team must do, and [team rules](https://docs.incident.io/on-call/alert-rules#team-rules) for teams that need something
different.

**7. Preview with recent alerts**

Select **Preview** and pick some recent alerts to see which branches they match and who would be paged, without
paging anyone. See [run a preview](https://docs.incident.io/on-call/alert-rules#run-a-preview).

**8. Cut over**

Point your monitoring tools at incident.io alert sources instead of PagerDuty. If you use Datadog, the [Datadog
migration tool](https://docs.incident.io/getting-started/migrate-datadog-monitors.md) or Terraform can repoint your monitors.

## FAQs

> [accordion] Can incident.io build my alert rules from my PagerDuty services?
>
> No. The import tools cover schedules, escalation policies and notification rules. You write your alert rules
> yourself, usually starting from one default rule that escalates to the alert's team.

> [accordion] Who gets paged while I'm testing?
>
> Until you cut over, PagerDuty still pages for alerts that reach it. Use the PagerDuty types in the Catalog to decide
> which teams page through PagerDuty and which through incident.io while you test.
