Alertmanager integration with PagerDuty and incident.io

Connecting Prometheus alerts to PagerDuty and incident.io through Alertmanager's native receivers, with integration keys, severity mapping, resolved notifications and one incident per problem across HA Prometheus pairs.

On this page

How Alertmanager pages on-call engineers in PagerDuty and incident.io

A team that wants Prometheus alerts to reach the right on-call person, and to open or resolve incidents without manual steps, needs to understand which component decides what happens at each stage. Prometheus evaluates alerting rules and sends firing alerts to Alertmanager. Alertmanager then groups related alerts, applies inhibition and silences, and routes what remains to a receiver. For this integration, the PagerDuty or incident.io receiver is the component that calls the vendor's API. The design method is Alertmanager's built-in receivers, not a custom adapter, so most of the work is configuration, credentials and testing rather than new code.

Before writing any receiver block, confirm the exact configuration keys in the Alertmanager configuration reference for the version you run. Receiver fields for integration keys, routing keys, severity and resolved handling have changed across releases, and the reference linked from the Alertmanager documentation is the place to check them. Decide early which label carries severity, how Prometheus labels map to the vendor's severity values, and which route sends each team's alerts to its own service or integration. A single shared integration key for every team is the most common cause of pages landing with the wrong responders.

Plan for resolved notifications and duplicate incidents before go-live. Alertmanager sends resolved updates only when the receiver is configured to do so and the alert actually clears, so test a firing and resolving cycle on each receiver. In a high-availability Prometheus pair, both servers can send the same alert, so confirm how Alertmanager deduplicates it and how the vendor matches incoming events to an open incident. Ask your vendor contact and confirm in your own environment that the deduplication key and resolve behavior match the design, since these details differ between PagerDuty and incident.io.

What you need before configuring the PagerDuty or incident.io receiver

Five things have to be in place before the receiver block goes into alertmanager.yml: a supported Prometheus and Alertmanager pair, a paging service owned by the on-call team, a network path to the vendor API, a secrets store for keys, and a reviewed routing tree. Each one is owned by a different group, so confirm them with those owners before anyone edits configuration.

Supported Prometheus and Alertmanager versions

Pin both components to a version that still receives fixes. Minor releases generally stop getting bug fixes after six weeks, so the latest feature release is the safest default, while long-term support lines get fixes for one year. The current LTS line is 3.13, supported until July 31, 2027, and the latest release on GitHub is v3.15.0. Confirm the exact Alertmanager build your team runs against the release cycle page before you copy receiver examples, since receiver options change between versions.

Release cycle page

A paging service created by the owning team

The PagerDuty service or incident.io integration must exist before Alertmanager can use it, and the team that will be paged should create it. That team decides escalation policies, service names and who receives pages at night. Ask for the integration key or routing key for that specific service, not a personal or account-wide key, and record which team owns it so rotation changes are traceable.

Outbound HTTPS from Alertmanager to the vendor

Alertmanager must reach the vendor's events API over HTTPS from every replica that sends notifications. Check firewall rules, egress allow-lists and any forward proxy, and confirm the proxy is configured for the Alertmanager process, not only for shell sessions. Test with a real event from each replica, because a single blocked node in a cluster produces pages that appear to work until that node is the one sending them.

A secrets store for integration keys

Integration keys are credentials that let any holder send alerts into your paging account. Keep them out of version-controlled configuration in plain text. Choose a store your team already operates, such as a Kubernetes Secret with restricted RBAC or a vault, and confirm how the key reaches Alertmanager at render time and how it is rotated. Ask who can read the secret and whether access is logged.

A reviewed routing tree

Decide before configuration which alerts page, which create tickets or chat messages, and which go nowhere. Write the route that sends severity values to the PagerDuty or incident.io receiver, and set group_by and continue deliberately. Have the on-call lead and the Prometheus owner review the tree together, and test it with the routing check tool so a typo in a matcher does not silently drop pages.

A Prometheus rule owner and alert severity labels

The receiver maps severity to paging behavior, so every alert needs a consistent severity label before it reaches the receiver. Name the person who owns alert rules and the label values allowed (for example, a short list such as critical, warning and info). Without that agreement, the mapping step turns into guesswork and pages go to the wrong priority.

How a firing alert reaches a PagerDuty or incident.io incident

The flow starts with two Prometheus servers evaluating the same rules and sending firing alerts to every Alertmanager instance, not through a load balancer. The cluster deduplicates and groups alerts, then the route picks a receiver. The PagerDuty and incident.io receivers read their integration keys from the client side and call each vendor's API across the trust boundary. Check that resolved notifications return along the same path, and that both Prometheus servers reach every Alertmanager.

Alert path from HA Prometheus pairs through Alertmanager to each vendor.

Configuration sequence from integration key to test page

This sequence takes a Prometheus and Alertmanager setup from no PagerDuty or incident.io connection to a verified test page that opens and resolves an incident. Each step ends with a check, so the team knows the integration works before any production alert routes through it.

  1. Create the integration in each vendor

    The on-call owner or platform engineer creates a dedicated service or integration in PagerDuty and in incident.io for this Alertmanager instance, using a name that identifies the source, such as the environment and cluster. Each vendor issues an integration key (called a routing or integration key in the vendor's interface). Record both keys in your secrets system, not in a shared document. The step is done when each integration appears in its vendor console with an active status and the key is stored where only the Alertmanager operator can read it. Confirm the exact field names and key types in each vendor's current documentation, since they change over time.

  2. Store the keys outside the config file

    Place each integration key in a file or secret store that the Alertmanager process can read at startup, such as a mounted Kubernetes Secret or a root-readable file on the host, and reference it from the configuration rather than pasting the value inline. Restrict read access to the Alertmanager service account and the people who maintain it. The check is that the key file exists with restricted permissions and that a plain-text search of the configuration repository returns no vendor key. Confirm with your platform team which secret mechanism your deployment already uses so the keys follow the same rotation process as other credentials.

  3. Add one receiver per vendor

    In the Alertmanager configuration, add a separate receiver for PagerDuty and another for incident.io, each pointing at its key reference. Keeping one receiver per vendor means a problem with one provider does not stop the other, and it keeps the routing tree readable for future changes. Use the receiver type and key field names from the Alertmanager documentation for each integration. The check is that the configuration validates with the Alertmanager configuration check command before it is loaded, and that the receivers appear in the status view of the running instance after reload.

  4. Add a test route with a matching label

    Add a route near the top of the routing tree that matches a dedicated label, for example a label such as test_page set to true, and sends matching alerts to the PagerDuty receiver and the incident.io receiver. Use continue only if you want the alert to keep matching later routes, and keep the test route narrow so no production alert can match it by accident. The check is that the route tree, shown by your Alertmanager tooling or the configuration review, sends a sample alert with the test label to these two receivers and no other alert to them.

  5. Reload Alertmanager by the method your deployment allows

    Apply the new configuration using the reload path your deployment supports, such as sending the reload signal to the process, restarting the container or pod, or using a configuration reload endpoint if it is enabled. The Prometheus security model notes that reload endpoints are disabled by default on the Prometheus side, so confirm the equivalent setting on your Alertmanager deployment before relying on an HTTP reload. The check is that the running configuration shows the new receivers and route, and that the logs show a successful load with no errors about the key files.

  6. Fire a test alert from a staging rule

    Create a temporary alerting rule in a staging Prometheus that always fires and carries the test label, or send a test alert directly to Alertmanager using its API with the same labels. Keep the rule in staging only, with a clear name such as one that marks it as a connectivity test. The check is that the alert appears as firing in the Alertmanager interface with the test label and the expected receivers. If it does not appear, check the Prometheus-to-Alertmanager target status first, since Prometheus must list every Alertmanager instance.

  7. Confirm the incident opens and resolves

    Check in PagerDuty and in incident.io that the test alert opened an incident on the correct service or integration, with the severity and summary you expected. Then remove the test rule or let the test alert resolve, and confirm that each vendor closes or resolves the incident automatically. The step is complete only when both vendors show an opened incident and a resolved state, and the on-call owner has seen the page reach a device. Record the test date, the configuration version, and who verified it, since this becomes your evidence that the path works.

Mapping Prometheus labels and severity to PagerDuty and incident.io fields

This table shows which Alertmanager labels and annotations feed each vendor's incident fields, and where each mapping is decided. Use it as a starting checklist for the label conventions your team agrees before routing is built. Exact field names and allowed values must be confirmed in each vendor's documentation and in your receiver's template options.

Alertmanager sourcePagerDuty field to confirmincident.io field to confirm
severity labelUrgency or priority, set from a template or a routing ruleSeverity, set from a template or a routing rule
alertname and team labelsService or routing target, chosen by the integration key used for the routeService or team the alert is routed to, chosen by the alert source or routing
summary annotationIncident title, shaped by the receiver's template optionsAlert or incident title, shaped by the receiver's template options
description annotationIncident body or details, included through the templateIncident body or description, included through the template
Alert status (firing or resolved)Trigger on firing, resolve on resolved, if the receiver sends resolved notificationsCreate on firing, resolve on resolved, if the receiver sends resolved notifications
Grouping labels (group_by)Controls how many alerts reach one incident, so decide it with the team before rolloutControls how many alerts reach one incident, so decide it with the team before rollout
Label conventions (owner, environment)Agree names and required labels before routing, since missing labels break the mappingAgree names and required labels before routing, since missing labels break the mapping

How resolved notifications and grouping keep one incident per problem

Alertmanager decides how many pages you get by grouping alerts before it notifies anyone. Each route has a group_by setting, and Alertmanager sends one notification per group, so the labels you list there define what counts as one problem. A grouping that is too broad, such as grouping by alertname alone across every cluster, can merge unrelated failures into a single page that names only part of the story. A grouping that is too narrow, such as including an instance label on an alert that fires for hundreds of hosts, splits one outage into many notifications and floods the on-call engineer. Choose group_by labels that match the unit a responder would act on, such as cluster plus alertname, and confirm the choice against the routing tree your team already runs.

Resolved notifications only close an incident if the receiver sends them and the vendor side can match them to the original trigger. The PagerDuty and incident.io receivers have a send_resolved setting, and you should confirm its current default in each vendor's Alertmanager documentation before relying on it. The incident is closed by a deduplication key: the routing_key or integration key identifies the service, and the dedup key tells the vendor that a later event refers to the same open incident. If the key that Alertmanager sends on resolve does not match the key used when the trigger was sent, the vendor treats the resolve as a new, unrelated event and the original incident stays open. Check how the receiver builds that key from your labels, because a label that changes between firing and clearing will break the match.

Test this with a fire-and-clear cycle before you trust the setup. Create a test alert in a non-production Prometheus, for example with a rule that uses a deliberately simple expression, let it fire, confirm that one incident opens in the vendor console, then make the condition false and confirm that the same incident resolves. Repeat with a second alert in the same group to check that grouping produces a single incident, and then fire two alerts from different groups to confirm they open separate incidents. Record the exact dedup key on both sides. If the incident does not resolve, the most likely cause is a label mismatch, so compare the grouped labels with the key the receiver generated.

Why HA Prometheus pairs can open duplicate incidents and how to prevent it

A highly available Prometheus pair evaluates the same rules and sends the same alerts twice, so the duplicate-incident risk is designed into the topology. The cards below cover the controls that keep one problem from becoming two or more pages, and the checks to run before go-live.

Both Prometheus servers fire the same alert

Each Prometheus replica evaluates the same rule files against the same targets, so both send an identical firing alert to Alertmanager. Alertmanager must collapse these into one notification group, which only works when both replicas attach the same labels. Confirm that external labels such as replica are either absent from routing or stripped before the alert reaches the PagerDuty or incident.io receiver, otherwise each copy looks like a separate alert. Each replica sends the same alert, so deduplication must happen in Alertmanager.

Alertmanager docs

Point every Prometheus at every Alertmanager

Prometheus should list each Alertmanager instance in its alerting configuration rather than sending traffic through a load balancer. A load balancer can route one replica's alerts to one Alertmanager and the other replica's alerts to a different one, which weakens the cluster's deduplication. Check the rendered configuration on each Prometheus host and confirm the full instance list is present on both servers.

Confirm the Alertmanager cluster forms

Alertmanager replicas started with the --cluster flags must join each other through gossip, or each instance acts alone and sends its own notifications. Check the cluster peer status on every instance and confirm the peer count matches the number of replicas before any receiver is enabled. Also confirm that the gossip port is reachable between Alertmanager hosts, since a firewall rule missing on that port can split the cluster without any visible error on the Prometheus side.

Keep vendor deduplication keys stable

PagerDuty and incident.io use a deduplication key to decide whether a notification belongs to an open incident. Alertmanager sends the grouping key and fingerprint, and these must come out identical no matter which replica or Alertmanager instance sends the event. Build the key from stable labels such as alert name and cluster, not from values that change per replica, timestamps or pod names. Test by firing the same alert through each replica and confirming a single open incident results.

Test failover of one Prometheus and one Alertmanager

Before go-live, stop one Prometheus instance and confirm alerts still reach the on-call tool from the surviving replica. Then stop one Alertmanager instance and confirm the remaining peers still deliver a single page and resolve it when the condition clears. Record the result for each step, including whether the resolved notification closed the same incident. Repeat this test after any change to the Alertmanager configuration or receiver templates, since those changes can alter the grouping key.

Protecting integration keys, API access and the alert path

PagerDuty routing keys and incident.io integration keys let anyone who holds them send alerts into your incident workflow, so treat them as credentials. Alertmanager reads its receiver settings from its configuration file, which is often copied into version control, container images and support bundles. Keep the key out of the file where your deployment allows it, and make sure the file is readable only by the Alertmanager process and the people who maintain it.

  • Store the key in a secrets manager: Pull the value from your existing secrets platform at deploy time rather than hard-coding it in the configuration.
  • Limit file permissions: Restrict read access on the configuration and any mounted secret files to the service account that runs Alertmanager.
  • Plan rotation: Define who can issue a new key, how the configuration is updated, and how Alertmanager is reloaded without a gap in paging.
  • Keep keys out of logs and tickets: Check that debug output, pasted configuration and chat threads never show the full key.
  • Scope keys to one service: Use a separate integration for each Alertmanager environment so a retired environment can be cut off without touching production.

Before go-live, confirm with the vendor how existing keys are revoked and whether a replacement can be issued without deleting the integration that routes pages.

Common Alertmanager to PagerDuty and incident.io failures and their fixes

This table lists the failures teams most often hit when Alertmanager pages PagerDuty or incident.io, with the likely cause, the check to run and the fix for each. Work down the rows in order when pages are missing, misrouted or duplicated, because several symptoms share one root cause.

SymptomLikely causeCheck to runFix
Events rejected or pages never openWrong or rotated integration key (routing key for PagerDuty Events API v2, or the incident.io alert source token)Check Alertmanager logs for HTTP 4xx responses from the receiver, then compare the key in the config with the one shown on the service or alert sourceReplace the key with the one from the correct service or source, store it in a secret file rather than inline, and reload the configuration
Alerts reach the wrong team or receiverA broad matcher higher in the route tree catches alerts before the intended child route, or a missing continue setting stops evaluationUse amtool config routes test with the alert labels to see which receiver matches, and review route order top to bottomMove specific matchers above general ones, set continue where one alert must reach several receivers, and add a test for each team route
No resolve notification after an alert clearssend_resolved is off on the receiver, or the alert was grouped under a different incident or dedup key than the one that firedConfirm send_resolved on the receiver, then compare the dedup or incident key on a firing and a resolved notification in the receiver's logsEnable send_resolved, keep grouping labels stable so the same key is used for firing and resolved, and test by clearing a test alert
Duplicate incidents from an HA pairThe Alertmanager cluster has not formed, so each replica pages independently, or Prometheus sends through a load balancer instead of to every instanceCheck the cluster status page and the peer count on each Alertmanager, and confirm every Prometheus alerting block lists all instancesFix the --cluster flags and peer addresses so all replicas join, list every Alertmanager instance directly in each Prometheus configuration, then retest a failover
Notifications fail from the Alertmanager hostEgress to the PagerDuty or incident.io endpoint is blocked by a firewall or proxy, or the proxy or TLS trust chain is not known to the hostTest outbound HTTPS from the Alertmanager host and container, and read the TLS error text in the logs for certificate or proxy failuresOpen egress to the vendor endpoint, configure the proxy settings for the receiver, and add the inspecting CA to the trust store the process uses
Config change has no effect on pagesThe reload was never triggered, the file failed validation, or the process still runs an older configRun amtool check-config on the file, then confirm the reload endpoint or signal was accepted and check the logged config hashFix the validation errors, enable the reload path your deployment uses, and reload each replica, since each instance loads its own copy
Severity shows the wrong priority in the incident toolThe severity label is missing or mapped to a value the receiver does not expect, so a default appliesCompare the severity label on a sample alert with the mapping in the receiver configuration and the vendor's accepted valuesSet a consistent severity label in alerting rules, map each value explicitly in the receiver, and test one alert per severity

Questions teams ask before connecting Alertmanager to PagerDuty or incident.io

How much effort does the PagerDuty or incident.io integration take compared with the routing and alert design around it?

The receiver configuration is usually the smallest part of the work. Connecting Alertmanager to PagerDuty or incident.io means creating an integration key or equivalent endpoint on the vendor side and adding a receiver block with that credential. The larger effort is deciding which alerts page, which go to a ticket or chat channel, how severity maps to urgency, and which team owns each service. That design work determines whether on-call engineers trust the pages. Expect the routing tree, severity mapping and alert review to take more time than the receiver itself, and ask any partner to separate those costs in the written scope.

Can our own team connect Alertmanager to PagerDuty or incident.io without outside help?

A team with working Alertmanager and on-call experience can usually build the basic integration in-house. The tasks are a vendor-side service setup, a receiver with the right credential stored outside plain configuration files, and a test alert that proves the page arrives. Where teams struggle is the surrounding discipline: writing resolved-notification behavior, handling duplicate incidents from an HA pair, and writing tests for routing changes. Outside help is most useful when several teams, regulated approval steps or an existing HA Alertmanager cluster are involved. Confirm your own skills against each of those tasks before deciding.

What does the vendor side need from our organization before the integration can work?

The vendor side needs an owner for each service that will receive pages, an escalation policy or equivalent on-call schedule for each service, and an administrator who can create services and integrations. Without those, the integration key has nowhere sensible to route. Ask who approves new services, who holds the admin role, and how departing staff are removed from schedules. Confirm the exact object names and permissions in your PagerDuty or incident.io account, since the setup steps differ by plan and account configuration. Collect these answers before work starts so the scope does not stall on access requests.

How long does testing usually take, and what changes it?

Testing time grows with the number of teams, services and routes that must each deliver a page to the right person. A single service with one escalation policy can be tested with a few controlled alerts, including firing, grouped and resolved states. Multiple teams add a test per route, plus checks that severity labels map to the expected urgency and that silences and inhibition rules do not hide a page. No duration is fixed by the vendors' documentation here, so ask a partner for a test matrix in the written scope and confirm the sequence with your on-call leads. Testing during a real maintenance window is a common source of delay.

What recurs after go-live, such as key rotation, route changes and upgrades?

Several things recur. Integration keys or routing keys should be rotated on a schedule your security policy sets, and the new value must be deployed to every Alertmanager instance. Routing changes happen as teams and services change, so each change needs a test before it reaches production. Alertmanager and Prometheus releases also move on their own cycles: the Prometheus release cycle page describes new minor releases every 6 weeks, and minor releases generally stop receiving bug fixes after that period, so plan for regular upgrades. Ask whether support for these tasks is included in your engagement or available as a retainer.

Does the work change when Prometheus runs as an HA pair?

Yes. Prometheus servers in a pair each evaluate the same rules and send their alerts to Alertmanager, so the same incident can arrive from both. Alertmanager deduplicates alerts it receives from several Prometheus instances when they share identical labels, but the paging vendor must also see one incident rather than two. Prometheus should point at every Alertmanager instance rather than a load balancer, as the Alertmanager documentation describes. Design the external labels and the Alertmanager cluster so both Prometheus servers produce matching alert identity, then test a failover of one Prometheus server and one Alertmanager instance before go-live.

Which secrets must be protected, and who should be able to see them?

The integration key or routing key is a credential that lets anyone holding it send alerts into your paging service. Store it in a secret manager or a file with restricted permissions, not in a shared configuration repository. Limit who can read Alertmanager's configuration and its management endpoints, because the admin and reload interfaces on the Prometheus side are controlled by flags and are disabled by default. Ask the partner or your security team to record where each key lives, who can read it and how a leaked key is replaced, so the rotation procedure is written before it is needed.

How DeployOpen scopes and delivers the PagerDuty and incident.io integration

DeployOpen plans and implements Alertmanager integration with PagerDuty and incident.io inside the client's own infrastructure, as part of a self-hosted Prometheus deployment. The work starts with a written scope that covers routing, severity mapping, resolve handling and high-availability duplicate control, then moves through build, testing, documentation and handover.

How we scope

  • We confirm which Prometheus and Alertmanager instances, services and teams will send pages and where each route should land.
  • We record the PagerDuty and incident.io accounts, services, integration key ownership and who holds administrative access.
  • We agree in writing how severities map to urgency, which alerts page, which go to tickets or chat, and what is out of scope.

How we build

  • We configure Alertmanager receivers, routes and templates for each agreed destination, keeping keys in a managed secrets store rather than in plain configuration files.
  • We set up resolved notifications so that incidents close when the underlying alert clears, and we test that path end to end.
  • We check how each Prometheus HA pair and Alertmanager cluster deduplicates alerts, then test failover so one replica failure does not create duplicate incidents.

How we hand over

  • We deliver configuration as code, a runbook for rotating integration keys, and a record of severity mapping decisions with their owners.
  • We document the test alerts used, the expected pages and resolutions, and the steps to confirm the integration after an upgrade.
  • We walk the on-call and platform teams through the setup and the escalation paths so they can change routes without guesswork.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers once the initial build is in place.
  • We can retest routing and receiver changes after new services or teams are added, using the scope agreed at the start.
  • We can confirm the integration against vendor and version changes that affect Alertmanager or the paging platform, as scoped in the retainer.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.