How Alertmanager webhooks forward Prometheus alerts to ITSM tools
Alerts that only appear on a dashboard or in a chat channel rarely get tracked to closure. If your organization runs ServiceNow or another ITSM platform, the alerts need to become tickets or events in that system, where your incident, change and on-call processes already live. Alertmanager does not create ServiceNow records itself. It receives alerts from Prometheus, groups and routes them, and then posts them to a receiver. Getting from there to a ticket is a separate piece of work, and it is the part that determines whether the integration fits your process.
Alertmanager's generic webhook receiver posts grouped alert data as JSON to an HTTP endpoint you specify. It is the supported method for custom targets. The receiver sends the grouped payload, the status of each alert, its labels and annotations, and a link back to the source. Whether that payload can be used directly depends on the target. A small adapter is usually needed when the target expects a different payload shape, uses another authentication scheme such as a service account with OAuth, or models tickets differently, for example by requiring an existing incident to be updated rather than a new record created for every firing alert. Confirm each of these points against your ServiceNow instance configuration and your own integration standards before you decide where the adapter sits.
DeployOpen scopes this work from a written specification that names the ITSM objects, the required fields, the routing rules that decide which alerts open tickets, the authentication method and the retry behavior you expect. Ask any implementation partner to show how the specification maps each Alertmanager field to a target field, and to state who owns the adapter code and its credentials after handover. Those answers, more than the receiver configuration itself, determine the effort and the operating cost.
What you need before configuring Alertmanager webhooks
A webhook integration touches four teams: the monitoring platform, the ITSM owner, the network team and the security team that signs off on credentials. Settle these prerequisites before writing any receiver configuration, because most failed rollouts stall on access, trust or a missing test environment rather than on the YAML.
Prometheus and Alertmanager versions
Pick the Prometheus and Alertmanager releases you will standardize on, and check the current release page before you start, since the latest releases change often. Prefer a long-term support line for Prometheus when the platform must stay patched for a fixed period. Record the exact versions in your change request so the receiver behavior you test is the behavior you deploy. Confirm that your Alertmanager version supports the webhook options you plan to use, such as custom headers or HTTP settings.
- LTS bug-fix window
- 1 year
Named endpoint and owner
Identify the receiving endpoint, whether that is the ServiceNow inbound API, an internal ticketing service or your own adapter, and name the team that owns it. Ask who answers when the endpoint returns errors at 2 a.m. and who approves changes to its payload schema. Without a named owner, a schema change on the receiving side will silently drop alerts, and nobody on the monitoring side will know until someone asks why tickets stopped.
Service account with ticket rights
Create a dedicated service account in the ITSM tool with only the rights needed to create and update incidents or events, not administrator rights. Store its credential in your secrets manager and plan rotation before go-live. Confirm with the ITSM administrator whether the account can be restricted to specific assignment groups and categories. Shared personal accounts make audit trails unreadable and break when the person leaves.
Network path from Alertmanager
Confirm that every Alertmanager instance can reach the endpoint over the port it uses, including through egress proxies and firewall rules that apply only to the monitoring subnet. Test from the actual Alertmanager host or container, not from an engineer's workstation. In clustered deployments, check each replica separately, because one node may sit in a segment with different egress rules.
TLS trust for internal certificates
If the endpoint uses an internal certificate authority, add the CA chain to the trust store that Alertmanager uses and verify it with a test request before writing the receiver. Decide whether mutual TLS is required by the ITSM side and, if so, who issues and renews the client certificate. Avoid disabling certificate verification to get past an error, since that exposes the ticket credential and alert content to interception.
Staging ITSM instance
Provision a non-production ITSM instance or a separate project so test alerts never open real tickets for operations staff. Ask the ITSM team to confirm that the staging endpoint matches production in authentication method, field validation and workflow rules. Plan how test data will be cleaned up and how you will prove that a resolved alert closes or updates its ticket in staging before you enable the production route.
How an alert travels from Prometheus to the ticket system
The path starts with Prometheus evaluating alert rules and sending firing alerts to Alertmanager, which groups and routes them to a webhook receiver. The webhook either posts straight to the ITSM API or hands the payload to an adapter inside your trust boundary that translates it. Check the credential location at each hop, and confirm that the ITSM tenant accepts only the identity the adapter holds.
Alert flow from rule evaluation to the ITSM ticket, with trust boundaries and credential locations.
Configuring the webhook receiver step by step
This sequence takes a Prometheus alert from its rule through Alertmanager routing and the webhook receiver to an ITSM ticket or internal tool, with a check at each stage so you know the path works before anyone depends on it.
Confirm the target endpoint and its contract
Before touching Alertmanager, the integration owner confirms the receiving endpoint: its URL, the HTTP method it accepts, the content type, and whether it expects the generic Alertmanager payload or a shape the adapter produces. Ask the ITSM or tool administrator for a written description of required fields and for a staging instance or sandbox project. You are done when you can send a hand-written JSON request to the endpoint from the Alertmanager host and get the success response the vendor documents, using a ticket or record that is clearly marked as a test.
Define the webhook receiver in Alertmanager
In the Alertmanager configuration file, add a receiver with a name your routes will reference and a webhook_configs entry containing the endpoint URL. Keep the receiver in a version-controlled file so changes go through review. Validate the file with amtool check-config before reloading. You are done when the configuration check reports no errors and the receiver appears in the Alertmanager status page after reload.
Set send_resolved and choose group_by
Set send_resolved to true if the receiving system needs a closing signal to resolve or update tickets, and leave it false only if the endpoint has no use for resolved notifications. Choose group_by labels that match how the ticket should be identified, for example alertname plus a service or cluster label, so one incident does not open a new ticket for every series. Reloading the configuration and triggering a test alert should show one grouped notification in the adapter log, not one per instance.
Route only the intended alerts to the receiver
Add a route that sends alerts to the webhook receiver using matchers on labels such as team, severity or a dedicated routing label, and keep the default route for everything else. Use continue only if other receivers should also get the same alerts. Run amtool config routes test with sample label sets to confirm which alerts match and which do not. You are done when a test label set for an unrelated team does not reach the webhook receiver, and a matching set does.
Configure http_config for authentication and TLS
Add an http_config block for the chosen authentication method, such as a bearer token or basic credentials read from a file, and set the CA certificate or TLS options the endpoint requires. Keep secrets in files with restricted permissions rather than inline in the main configuration, and confirm that the endpoint is reached over HTTPS. Check the Alertmanager logs after a reload for failed authentication or certificate errors. You are done when a test notification returns a successful status from the endpoint and no credential appears in plain text in the configuration or logs.
Deploy the adapter where no native receiver fits
If the endpoint cannot read the Alertmanager payload directly, deploy a small adapter service that accepts the webhook, maps labels and annotations to the target system's fields, and handles its own retries and idempotency keys. Run it in the same environment as Alertmanager or in a network path it can reach, and log every received payload at a level that avoids sensitive values. You are done when the adapter log shows a received payload with the expected alert name, status and labels.
Send a test alert through the full path
Create a temporary alert rule or use amtool to post a synthetic alert with the routing labels you configured. Follow it from Prometheus to Alertmanager, through the route and webhook, into the staging ticket or record. Then resolve the test alert and confirm the resolved update arrives and closes or annotates the record as designed. Record the Alertmanager alert ID and the ticket ID together so the path can be audited later. You are done when the ticket exists in staging, the resolved update is visible, and no unrelated team received the test.
Mapping Alertmanager payload fields to ITSM ticket fields
This table maps the parts of an Alertmanager webhook payload to the fields a typical ITSM ticket uses, such as state, short description, priority and configuration item. Read it as a starting design, then confirm each payload key against the Alertmanager webhook documentation and each target field against your ITSM vendor's API schema before building the adapter.
| Payload field | Typical ticket field | Mapping notes |
|---|---|---|
| status (firing or resolved) | State or incident state | Open the ticket on firing and move it toward resolved only on resolved. Confirm which state values your ITSM instance accepts for closure. |
| groupKey | External reference or correlation ID | Store it so repeated firing notifications update one ticket instead of opening duplicates. Confirm the target has a field that accepts an external identifier. |
| commonLabels (alertname, severity, team, service) | Short description, priority, assignment group | Build the short description from alertname and service. Map severity to priority through an explicit lookup table, not a direct copy. |
| commonAnnotations (summary, description, runbook_url) | Description and work notes | Put the summary in the short description or description field and link the runbook in work notes. Keep annotation text short, since ticket fields often have length limits. |
| alerts[].startsAt and endsAt | Opened time, resolved time | Use startsAt for the opened time. Treat endsAt as meaningful only on resolved notifications, and confirm the timezone format your ITSM expects. |
| alerts[].generatorURL | Work notes or external link field | Link back to the Prometheus expression so responders can open the query that fired. Confirm the URL is reachable from the ITSM users' network. |
| alerts[] list (labels per alert) | Work notes or child records | Individual alerts in a group can carry different instances. Decide whether to add one note per alert, one ticket per alert, or a summary, and test with a grouped payload. |
| Standardized labels: severity, team, service | Priority, assignment group, configuration item | These labels must exist on every rule for the mapping to work. Agree on allowed values and enforce them in rule reviews and promtool tests, or unmapped alerts will land in a default group. |
Retries, duplicate tickets and resolved updates
Alertmanager retries failed webhook deliveries, so the same notification can reach your adapter more than once. The adapter, not Alertmanager, must make that safe. Treat each alert's fingerprint and the group key in the payload as an idempotency reference: before creating a ticket, look up whether an open ticket already carries that reference (for example, in a custom field or external ID on the ITSM record), and update it if so. Store the mapping in a small database or the ITSM system itself, and confirm that the ITSM API supports searching by an external reference. Without this lookup, a single retry during a network blip can open two incidents for one outage, and the on-call team will notice before the monitoring team does.
The send_resolved setting decides whether the receiver is told when an alert clears. Set it to true on any receiver that closes tickets, and make the adapter close a ticket only when every alert in its group has resolved, because a group can contain several alerts with different lifecycles. Test this with a short-lived alert in a non-production environment and confirm that a resolved notification arrives after the firing one. Also confirm what your ITSM tool does with a closed record that receives new updates: some reopen it automatically, which can hide a flapping alert behind a ticket that looks finished.
When the ITSM API is unavailable, Alertmanager's retries are finite, so the adapter needs its own plan. Decide in advance whether failed payloads go to a dead-letter queue, a file or a table for later replay, and who owns the replay. Log every received payload, the outcome of each API call and the reference used, with enough detail to reconcile a missing ticket after an outage. Monitor the adapter's error count and alert on it, and make sure that alert does not depend on the same ITSM system. Finally, when a group gains or loses alerts, the ticket should be updated with the new membership, not duplicated. Agree with the service desk which fields change on update and whether a membership change should reopen a closed ticket.
Securing the webhook path end to end
A webhook receiver carries live alert data into a ticketing system, and every hop between Alertmanager, the adapter and the ITSM tool needs its own controls. The cards below cover transport security, credential handling, change control on receivers, input limits and logging, so that the path is reviewed as one system rather than three separate configurations.
Encrypt the endpoint and pin trust
Serve the webhook over HTTPS and set the trust anchor explicitly in http_config on the receiver, using tls_config with a CA file for the adapter's certificate. Avoid disabling verification to get a test working, because a disabled check turns the alert path into something any host on the network can impersonate. Check that the certificate names match the URL Alertmanager calls and that renewal is tracked, since an expired certificate silently stops ticket creation.
Scope service accounts to one job
Create a dedicated service account in the ITSM tool for the adapter, with permission only to create and update the ticket types the alerts need, and no admin or user-management rights. Ask the ITSM owner which fields the account can write, so a compromised adapter cannot close unrelated incidents or change assignment groups. Document the account's owner and review its permissions at each ITSM upgrade.
Keep tokens out of config files
Store the ITSM token or basic-auth password in a secret store or a root-readable environment file that the adapter loads at start, and reference it by path rather than pasting it into alertmanager.yml. Alertmanager configuration is often copied into tickets, Git history and support bundles, so a token in that file is effectively exposed to everyone who can read it. Confirm who can read the secret store and whether access is logged.
Rotate authentication headers on a schedule
Set a rotation interval for every bearer token and API key on the path, and record the next rotation date in the runbook with a named owner. Rotation needs two steps: issue the new credential, deploy it to the adapter, then revoke the old one after confirming alerts still create tickets. Test the rotation in a non-production ITSM instance first, because a missed step causes a gap in ticket creation that is easy to overlook.
Restrict who can change receivers
Receiver URLs, http_config and routing rules decide where alert data goes, so treat changes to alertmanager.yml as privileged. Keep the file in version control with required review, limit write access to the platform team, and disable the lifecycle endpoints on Prometheus that allow remote reload unless they are needed. Check that Alertmanager's own web and API access is authenticated, because a caller who can post to it can also redirect alerts.
Limit adapter inputs and output size
The adapter should accept only the JSON structure Alertmanager sends, reject oversized request bodies, and cap the number of alerts it converts into one ticket. Truncate long annotation values before they reach the ITSM tool, and set request timeouts so a slow ITSM API does not hold connections open. Ask the adapter author how these limits are configured, and test them with an oversized and malformed payload before go-live.
Log without copying secrets
Adapter logs should record alert name, fingerprint, receiver, HTTP status and retry count, but not request headers, tokens or full annotation text. Annotations often include hostnames, customer identifiers or query output that should stay in the monitoring system rather than spread into tickets and log archives. Agree with the security team which fields may appear in tickets, and check log output in a test run before enabling the receiver in production.
Common webhook failures and how to fix them
This table pairs each common failure in an Alertmanager webhook path with its likely cause, the check to run and the fix. Read it top to bottom when a ticket is missing, duplicated or stuck, and confirm each check against your own Alertmanager configuration and the ITSM API logs before changing anything.
| Failure | Likely cause | Check to run | Fix |
|---|---|---|---|
| Receiver never fires | Route matchers do not match the alert labels, or a earlier route with continue unset captures the alert first | Run amtool config routes test with the alert's labels and confirm the receiver name shown | Correct the matchers or label names, reorder routes, and set continue where a second receiver must also get the alert |
| 401 or 403 from the ITSM API | Missing or expired API token, wrong auth scheme, or a service account lacking permission to create or update the record type | Replay one payload with curl using the same header and check the status and response body in the ITSM logs | Load the secret from a file via the credentials or authorization settings, rotate it, and grant the integration account the required table or project role |
| TLS handshake errors with an internal CA | Alertmanager does not trust the internal certificate authority, or the endpoint presents a chain missing intermediates | Check Alertmanager logs for x509 errors and verify the chain with openssl s_client against the target host | Add the internal CA bundle through the TLS configuration for the receiver and ensure the server sends its full chain |
| Payload rejected by the target | Field types do not match the target schema, for example a number sent as a string or a timestamp in an unexpected format | Compare the webhook body Alertmanager sends with the target API schema and read the 400 response message | Adjust the template or adapter to cast fields, map labels explicitly, and keep field names exactly as the target expects |
| Duplicate tickets after restart or HA failover | Each Alertmanager replica sends its own notification, or a restarted instance has no record of prior sends, so the target sees new alerts | Check whether both replicas posted for the same alert and compare the group keys in the ticket external reference | Use a deduplication key derived from stable labels in the adapter, look up open tickets before creating one, and confirm cluster settings on every replica |
| Resolved alerts do not close tickets | The webhook receiver is not sending resolved notifications, or the adapter cannot match the resolved alert to the open ticket | Confirm send_resolved is enabled on the receiver and inspect a resolved payload for the status field and the fingerprint | Enable send_resolved, store the deduplication key on ticket creation, and close the matching ticket when status is resolved |
| Repeated sends caused by timeouts | The target responds slowly, the request times out, and Alertmanager retries the notification | Compare the receiver timeout with the target response times and search logs for context deadline exceeded | Make the adapter return quickly, queue slow work, and raise the timeout only after confirming the target can respond within it |
Questions buyers ask about Alertmanager webhook integrations
Is Alertmanager's generic webhook enough, or do we need an adapter?
The generic webhook is enough when the target system can accept a JSON POST from Alertmanager and map its fields without help, such as a simple internal endpoint or an automation tool that already has an inbound webhook trigger. An adapter is usually needed when the target expects its own schema, requires a session or token exchange, must look up or create records by key, or needs deduplication and state tracking across alert updates and resolutions. Alertmanager sends grouped alerts with a status, labels and annotations, so the question to settle first is how each alert maps to one ticket or record. Ask your ITSM administrators to confirm which fields and API operations they will accept before choosing a design.
What drives the effort of an Alertmanager to ITSM integration?
Effort grows with the number of receivers, the complexity of the ticket model and the authentication method. Each receiver needs its own routing match, payload mapping and test cases. A ticket model with categories, assignment groups, priority mapping, update-in-place and automatic closing on resolution takes more design than a single create-only flow. Authentication adds work when the target uses OAuth client credentials, mutual TLS or per-service accounts with rotation. Testing against a staging instance of the ITSM tool, with realistic alert volumes and grouping behavior, is a separate and often underestimated part of the work. Request a quote that lists each receiver, the ticket fields it touches, the authentication method and the test environment it will use.
What do we need from our ITSM admins and network team?
Your ITSM administrators need to provide API credentials for a dedicated integration account, the field and category definitions, the priority and assignment rules, and access to a staging instance that mirrors production configuration. They also need to confirm which events should create, update or close records. The network team needs to confirm that the Alertmanager hosts can reach the target endpoints, whether traffic must pass through a proxy or egress firewall, which TLS certificates and internal certificate authorities apply, and how DNS names resolve from the monitoring network. If the adapter runs in a segmented or air-gapped zone, the path for secret delivery and log collection must be agreed in advance. Ask the quote to state these dependencies explicitly.
Can our internal team build and run this integration alone?
An internal team can build a simple webhook receiver if it has engineers who know Alertmanager configuration, the target API and secure secret handling, and if it can test against staging. The skills that are often thin inside a team are retry and idempotency design, handling partial failures in grouped payloads, keeping ticket state consistent when Alertmanager restarts or runs as a cluster, and writing tests that replay real alert sequences. Consider whether the people who will be paged for the integration's failures are the same people who built it. A useful check is whether one engineer can explain how a firing alert becomes a ticket, how a resolved alert is handled and what happens when the ITSM API is down for an hour. If not, a fixed-scope engagement with a written handover may reduce the risk.
How do Alertmanager retries and failed deliveries affect the design?
Alertmanager retries failed notifications to a receiver, but the receiver must still be safe to call more than once and must return clear status codes. A webhook that creates a new ticket on every retry will produce duplicates, so the adapter should look up an existing record by a stable key, such as the alert group key or a fingerprint built from labels, before creating one. Decide what happens when the target is unavailable for longer than the retry window, and whether the adapter should queue events, alert a separate monitoring path or write to a dead-letter store. Confirm the retry and timeout behavior against the Alertmanager version you run in the official documentation, since these settings are part of the configuration you will test.
How are ongoing changes to alert routes and ticket fields handled?
Changes come from three sources: new alert rules that need new routes, ITSM schema changes such as renamed categories or new required fields, and Alertmanager upgrades that change configuration behavior. Each change should go through version control, a staging test that replays representative alerts and a documented rollback. Ask whether the work includes a runbook, who approves changes to production routing and how ticket logic is reviewed. Ongoing support can be handled internally or through a retainer with DeployOpen, which covers upgrades, testing and updates to the adapter. Ask any partner to state in writing how changes are requested, tested, approved and recorded, and which parts stay with your team.
What evidence should we request before approving the integration?
Ask for the routing configuration and receiver definitions in version-controlled form, the adapter source code if an adapter is built, the test plan with replayed alert sequences, and results from staging showing create, update, resolve and failure cases. Request the authentication design, including where secrets are stored and how they rotate, and the logging that records each delivery attempt without exposing credentials or sensitive alert annotations. Compliance and security reviewers often ask who can view ticket content and whether alert annotations contain personal or regulated data, so the design should state which label and annotation fields are forwarded. A written quote should list these deliverables, the environments used for testing and the exclusions.
How DeployOpen scopes and delivers Alertmanager webhook integrations
DeployOpen plans and builds Alertmanager webhook integrations inside your own infrastructure, starting from a written scope that names each receiver, payload contract and failure path. The work is tested against your Alertmanager configuration and handed over with the documentation your operations and security teams need to run it.
How we scope
- Engagements are fixed-scope, with the receivers, target systems and alert routes agreed in writing before work starts.
- We inventory which alerts must reach the ITSM tool or internal service, and which stay in Alertmanager only.
- The scope names the authentication method, secret storage location and TLS requirements for each webhook endpoint.
- We confirm the target system's API version, required fields and rate limits with its owner before design begins.
How we build
- We map Alertmanager's generic webhook payload fields to the ticket or event fields the target system expects.
- Where no native receiver exists, we build a small adapter, with its retry, timeout and deduplication behavior documented.
- Each route is tested with sample firing and resolved alerts, including duplicate delivery and target outage cases.
- Adapter code and configuration are kept in version control, with the deployment steps written for your platform team.
How we hand over
- You receive the Alertmanager configuration, adapter source, deployment notes and a record of the tests run.
- The runbook covers how to rotate webhook credentials, replay failed notifications and disable a route safely.
- We walk your operations team through the failure modes, including what happens when the ITSM endpoint is unreachable.
- Handover includes a list of open items that your team should confirm with the target system's administrators.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retainers can cover Alertmanager and adapter upgrades, so receiver behavior is retested when versions change.
- Changes to alert routes or ITSM field mappings are scoped and tested in the same way as the original build.
- Support terms, response expectations and included testing are written into the retainer agreement before it starts.

