Why Alertmanager needs a cluster before it needs a load balancer
A single Alertmanager is a single point of failure for paging. Prometheus evaluates alert rules, then hands firing alerts to Alertmanager, which groups them, applies silences and inhibition, and sends the notifications to receivers. If that one process is down, restarting, or unreachable, the alerts still exist in Prometheus but nobody gets paged. For a team running on-call around the clock, or one that must show regulators that paging survives a single failure, that gap is the first risk to close. The fix is to run more than one Alertmanager instance and tell Prometheus about all of them.
Alertmanager's own documentation describes running as a cluster for high availability through its --cluster flags, which let replicas find each other and share state over a gossip protocol. The Prometheus Operator makes the same design choice: it configures Prometheus to send alerts to all Alertmanager instances, and those instances form a gossip-based cluster when the replica count is greater than one. The point of the clustering is coordination. Replicas share silences and notification state so that a page is not sent twice when two instances receive the same alert. Confirm the exact flag names, default ports and peer settings against the version you deploy, because they change between releases.
The Alertmanager docs say Prometheus should point at every Alertmanager instance rather than at a load balancer in front of them. A load balancer would send each alert to only one replica, which weakens the deduplication the cluster is meant to provide, and it hides which instance actually delivered a notification. Before you build the cluster, decide who owns the on-call path, which receivers must survive a single node loss, and how you will prove failover works during a planned test. Those answers set the replica count, the network paths between peers, and the test plan covered in the rest of this page.
Cluster flags and deployment options compared
This table compares four ways to run Alertmanager: a single instance, a gossip cluster of replicas, the Prometheus Operator managed setup, and a load balancer in front of Alertmanager. Read each row against your team size, your tolerance for a dropped page, and whether you already run Kubernetes. The main takeaway is that a load balancer is the option to avoid for Alertmanager, because Prometheus should point at every instance.
| Option | When it fits | Trade-offs |
|---|---|---|
| Single instance | Small estate, one team, and a short outage on the alerting path is acceptable | Simplest to run, but one failure stops grouping, routing and notifications until it recovers |
| Gossip cluster of replicas | Pages must survive one instance failing and you run Alertmanager on virtual machines or plain hosts | Uses the --cluster flags to gossip silences and notification state; you must open the cluster port and configure peers and monitoring yourself |
| Prometheus Operator managed setup | You run Prometheus on Kubernetes and want replicas managed declaratively | The Operator sets the replica count and clustering; when replicas are greater than 1 it forms a gossip cluster, but you still confirm the Operator version and settings |
| Load balancer in front of Alertmanager | Tempting for a single endpoint, but generally not recommended for Alertmanager | Prometheus should send to every instance, not one virtual address; a balancer can hide a dead replica and duplicate or drop pages |
| Replicas without gossip | Two independent instances with every Prometheus sending to both | Each instance groups and notifies on its own, so expect duplicate pages unless receivers deduplicate; confirm behavior in a test |
How gossip deduplication keeps one page per alert
Gossip deduplication is what stops a clustered Alertmanager from paging twice for the same alert. Each replica receives its own copy of every alert from Prometheus, because Prometheus sends to all instances rather than through a load balancer. The replicas then share a record of which notifications have already been sent for each alert group, over the cluster peer connections that the --cluster.listen-address and --cluster.peer flags set up. Before a replica sends a notification, it checks that shared state, so the first replica to act sends the page and the others stay quiet. The practical question for you is not whether this works in principle, but whether it works for the Alertmanager version you run and your network. Confirm the exact deduplication behavior against that version in the Alertmanager documentation before you rely on it for paging.
Because replicas coordinate through gossip, a notification is held briefly while peers exchange state, and the timing of that exchange affects when the first page arrives. Grouping works the same way: replicas must agree on the group that an alert belongs to, so the group_by labels in your routing tree need to be identical on every instance. Two instances that were started with different configuration files can group the same alert differently, which produces duplicate or split notifications that look like a deduplication failure. Check that every replica loads the same configuration file, and plan a test where you send one alert and count the pages received at the receiver.
Your receiver's own behavior also matters. A notification receiver that does not de-duplicate on its side, or that opens a new incident for each message, will show duplicates even when Alertmanager has behaved correctly. Ask the team that owns each receiver how it handles repeated notifications with the same grouping key, and record the answer as part of your failover test plan. Prometheus pages that depend on deduplication should be verified with a live drill, not assumed from the design.
Setting up a three-replica Alertmanager cluster
This sequence turns three independent Alertmanager instances into a gossip-based cluster that shares silences and notification state, so one replica failing does not stop pages. Each step ends with a check you can run before moving on.
Size the replicas and network
Your platform or monitoring team decides where the three Alertmanager instances run, typically on separate hosts or nodes so one failure does not take out more than one replica. Confirm that each instance can reach the others on the cluster listen port and the cluster advertise address, and that firewalls or network policies allow traffic between them in both directions. Record each instance's address and the port plan in your runbook. You know this step is done when every replica can reach every other replica on the planned ports from its own host, and the plan lists one address per instance.
Open cluster ports between instances
Open the gossip ports that Alertmanager uses for cluster traffic between the three replicas, and keep them internal to the monitoring network. Gossip is peer-to-peer, so the ports must be open between all pairs of instances, not only from one primary to the others. Confirm the exact port numbers and protocols against the Alertmanager documentation for your version before writing firewall rules. You know this step is done when a connectivity test from each replica to the other two succeeds on the cluster ports, and nothing outside the monitoring network can reach them.
Start each replica with cluster peers
On each Alertmanager host, start the process with the --cluster flags so it knows its own advertise address and the addresses of the other two peers. Use the same configuration file on all three instances, with the same receivers and routes, because each replica has to send the same notifications for deduplication to work. Start the replicas one at a time and watch the logs for join messages. You know this step is done when each instance logs that it has started the cluster listener and that it is aware of peers, with no configuration errors.
Confirm peers have joined the cluster
Before changing Prometheus, check that the three replicas see each other. Query the Alertmanager status endpoint on each instance and confirm that the cluster section lists three members in a ready state, with the same cluster peer count from every node. If a replica reports fewer peers, recheck the advertise addresses and the gossip port reachability from that host. You know this step is done when all three instances report the same three peers and the cluster status is ready on each. Do this check now, because later failures are harder to trace back to peer discovery.
Point every Prometheus at every instance
Update the alerting section of each Prometheus configuration so it lists all three Alertmanager instances as static targets or through service discovery. Do not place a load balancer in front of the replicas for alert delivery, because Prometheus must send each alert to every instance so the cluster can deduplicate and deliver it reliably. Reload Prometheus through your normal configuration process. You know this step is done when the Prometheus alerting status page shows all three Alertmanager endpoints as active on every Prometheus server.
Send a test alert through the cluster
Trigger a test alert from Prometheus, using a rule that fires only for this test and carries a clearly labeled test name. Confirm that the alert appears on all three Alertmanager instances and that exactly one notification reaches the receiver, which shows that deduplication works across the cluster. Then resolve the test alert and confirm the resolved notification follows the same path. You know this step is done when the receiver shows one firing and one resolved message for the test and the alert is visible on each replica.
Test failover before relying on the cluster
With the test alert configured, stop one Alertmanager replica on purpose and fire a new test alert while the other two keep running. Confirm that the notification still reaches the receiver and that the remaining peers report the cluster state accordingly. Then restart the stopped replica and confirm it rejoins the peer list. Record the results and repeat the exercise on a schedule your team agrees on. You know this step is done when a page is delivered with one replica down and the restarted instance returns to a ready cluster state.
How Prometheus servers, Alertmanager replicas and receivers connect
The diagram starts with Prometheus servers evaluating alert rules, which send each firing alert to every Alertmanager replica rather than through a load balancer. The replicas gossip with each other on the cluster port so they share state and deduplicate, and the cluster then delivers notifications to receivers outside the monitoring network. The boundary between the monitoring network and receivers is where you check credentials, TLS and egress rules, and where a failed replica should still leave the others able to page.
Every Prometheus sends to every Alertmanager replica, and replicas gossip to deduplicate.
Testing failover before an on-call incident
The simplest test stops one Alertmanager instance while alerts are firing and confirms that the remaining replicas keep grouping, deduplicating and notifying. Start from a known state: a firing test alert, a named receiver and a silence you can see in the UI. Stop one replica, wait for the cluster to settle, then send a fresh test alert through Prometheus rather than directly to Alertmanager, so the whole path is exercised.
- Pick the target deliberately: stop a replica that is actually serving the Prometheus connections, not only an idle one, so the test proves something.
- Watch the receiver, not only the process: confirm the page or message arrives once, not zero times and not several times.
- Record timing: note when the stop happened, when the test alert was sent and when it arrived at the receiver.
- Confirm the cluster view: check the peer status page on the remaining instances to see the membership change.
- Restore and recheck: start the stopped replica again and confirm it rejoins the cluster.
Record the instance stopped, the timestamps, the number of notifications received and any errors in logs. Confirm in your environment whether your receivers accept duplicate notifications from more than one replica and how your on-call tool counts them.
A network partition is harder to catch than a stopped process because every instance stays up and reports healthy locally. Split the replicas so that some cannot reach others on the cluster port used for gossip, while Prometheus can still reach all of them. This shows whether each side keeps notifying and whether the split causes duplicate or missed pages. Run the test in a non-production environment first, because firewall rules are easy to get wrong.
- Block gossip only: drop traffic between replicas on the cluster port while leaving the Prometheus-facing port open.
- Test both sides: send a test alert through each isolated group and record what each one notifies.
- Check for duplicates: compare the notifications received during the split with the number expected for your routing.
- Observe membership: note how the peer view on each side changes during and after the partition.
- Heal and verify: remove the block, then confirm the replicas converge and that silences and active alerts are consistent.
Record the ports blocked, the time of each change, what each side notified and how long convergence took. Confirm with your network team that the test rules match the production firewall design, and confirm in your environment how your paging tool handles the duplicates that a partition can produce.
A replica that restarts after being down can hold older state than its peers, including silences and notification log entries it missed while away. This test checks that a rejoining instance catches up instead of re-sending notifications or reviving silences that were already removed. It is also the scenario where a data directory from a previous run can surprise operators, so decide in advance how the storage for each replica is handled.
- Create the stale condition: stop one replica, then change state on the others, such as adding a silence and resolving a test alert.
- Restart the replica: bring it back and check its peer status and the silences it reports.
- Look for resurrected notifications: confirm that resolved alerts do not produce new notifications after the rejoin.
- Check the data directory: record where each replica stores its state and whether it was cleared or reused.
- Test the alert path afterward: send a new test alert and confirm exactly one notification path behaves as designed.
Record the state changes made while the replica was down, what the restarted instance showed afterward and any notifications sent during the rejoin. Confirm with your team which storage setup each replica uses and how long a rejoin takes in your environment, since that depends on your deployment.
Each failure test above should end with the same check: a test alert reaches the receiver that your on-call team uses. Make this a dedicated, labeled alert with a route that is easy to find, so the on-call team can tell a drill from a real incident. Use the same receiver configuration as production, including credentials and templates, and do not test only against a staging receiver that differs from the one people carry on their phones.
- Use a labeled drill alert: give it a name and label that identify it as a failover test and that your routing can match.
- Send it through Prometheus: trigger it from a rule so the path includes Prometheus, not only a manual call to Alertmanager.
- Confirm the receiver outcome: check that the page, message or ticket arrives and that resolution is also delivered.
- Test during each scenario: repeat the check during the stop, partition and rejoin tests, not only once at the end.
- Notify the on-call team: tell responders when a drill is running so nobody treats it as an incident.
Record the drill alert name, each receiver reached, the arrival time and whether the resolved notification arrived. Confirm in your environment that the on-call tool's own escalation policy is part of the test, since a delivered notification that no one acknowledges still fails the purpose.
Securing cluster traffic and admin access
Alertmanager replicas gossip with each other and receive alerts from every Prometheus server, so the paths between them and the APIs behind them are part of your alerting security. The cards below cover the transport, authentication, network exposure and admin surfaces to review before the cluster carries real pages.
TLS and client certificates
Prometheus supports TLS and client certificate authentication with TLS 1.2 as the minimum, so the alert delivery path from each Prometheus server to every Alertmanager instance can be encrypted and mutually authenticated. Decide which certificate authority issues the certificates, how they rotate, and who holds the private keys. Check that every Prometheus target entry for Alertmanager uses the same trusted chain, because a single replica that rejects the certificate silently drops that path. Confirm the setting with the current Prometheus security model before rollout.
Prometheus security modelBasic auth needs TLS
HTTP basic authentication with bcrypt-hashed passwords is supported, but without TLS the credentials travel in cleartext on every request. Alertmanager replicas and Prometheus sending alerts across a network segment are the place this most often goes wrong, especially when a quick test configuration is later promoted. Enforce TLS on every listener before enabling basic auth, and review the web configuration file for each replica so that no instance is left on plain HTTP.
Keep cluster ports private
The gossip cluster uses its own listen address and peer addresses, and those ports should be reachable only from the other Alertmanager replicas. The web port should be reachable only from Prometheus servers, the UI operators and any proxy you place in front of them. Define these rules in your network policy or firewall and write them down with the cluster flags, so that a later change to a load balancer or ingress does not expose them to public networks.
Admin and lifecycle endpoints
The Prometheus admin HTTP APIs are disabled by default, and the --web.enable-admin-api flag enables destructive operations while --web.enable-lifecycle enables reload and shutdown. Leave both off on production servers unless a runbook needs them, and restrict any reload path to the automation account that deploys configuration. Note that Alertmanager and Prometheus expose different endpoints, so review each process separately. Anyone who can reach an enabled shutdown endpoint can stop a replica that your pages depend on.
Single sign-on in front of the UI
Prometheus has no built-in single sign-on, and its security model notes there is no built-in CSRF protection on mutating endpoints. Place an authenticating reverse proxy in front of the web interface and API when operators need SSO, and confirm that the proxy also covers Alertmanager's UI so silences cannot be created anonymously. Ask the proxy team which headers identify users to the backend, and confirm that clients cannot set those headers themselves.
Questions teams ask before running Alertmanager HA
What does an Alertmanager HA cluster cost to run?
The Prometheus project is licensed under Apache-2.0 and has no paid edition, so the cost of an Alertmanager cluster is the infrastructure it runs on, the implementation work and the people who operate it. Each replica needs compute and a small amount of storage, and the replicas need a network path to each other on the cluster port. Recurring costs are the hosts or Kubernetes capacity, monitoring of the cluster itself, and upgrades. Ask any partner for a written quote that separates one-time build work (configuration, notification testing, failover testing, runbooks) from recurring support and upgrades, and that names which replicas and environments are in scope.
How long does an Alertmanager HA setup take?
The duration depends on how many Prometheus servers and receivers you have, how many environments need the cluster, and whether the hosts and network paths already exist. A single cluster in a team's existing environment with a few receivers is a smaller job than several clusters across separate networks with paging integrations that each need validation. No timeline is given here because it varies widely. Ask for a schedule tied to the written scope, and confirm which items depend on your side, such as host provisioning, firewall change approvals and access to your paging and chat accounts.
What does the work need from our team?
The work needs named people who can make decisions and provide access. Typically that means an owner for the Prometheus and Alertmanager configuration, someone who can open firewall rules between the replicas and from each Prometheus server, and the owners of each receiver such as the paging service or chat workspace, who can confirm test notifications arrive. Your team also needs to decide the failover acceptance criteria and who is on call during the test window. Without these, the build stalls waiting for approvals rather than for technical reasons.
Can a platform team set up Alertmanager HA on its own?
Yes, a platform team with experience in Prometheus configuration and network administration can build a cluster on its own, and the project's documentation covers the cluster flags and ports involved. The harder parts are usually not the flags: they are confirming that every Prometheus server reaches every replica, validating routing and deduplication against real receivers, and testing failover without dropping pages. Teams that run this alone should plan time for those checks and for keeping the configuration in version control. A partner is useful when the team lacks capacity or wants an independent test before go-live.
How is a failover test scoped?
A failover test is scoped by the failure cases it covers, the alerts it uses, and the receivers it checks. A typical scope includes stopping one replica while a test alert is firing, confirming the notification still arrives once and without duplicates, restarting the replica and confirming it rejoins the cluster, and repeating for the other replicas. It should also confirm each Prometheus server sends to every instance, and that silences and resolved notifications survive a restart. Agree the test plan, the pass criteria and the rollback steps in writing before the window, and run it against a non-production route first.
Does an HA cluster stop every missed page?
No. A cluster removes the single Alertmanager replica as a point of failure, but it does not guarantee delivery when the whole monitoring path is broken. If Prometheus cannot evaluate rules, or the network between Prometheus and every replica fails, no replica can page. The Prometheus docs describe the project as valuing reliability over precision, which is a different promise from guaranteed notification. Pair the cluster with monitoring of Prometheus and Alertmanager themselves and an end-to-end test alert, and ask any partner to state in writing what the engagement does and does not cover.
Who keeps the cluster running after go-live?
Someone on your team must own upgrades, configuration changes, receiver credentials and the failover runbook after go-live. Alertmanager changes, new routes and new receivers all affect every replica, so the configuration should live in version control and be deployed the same way to each instance. If you want outside help after launch, ongoing support and upgrades can be arranged as a retainer with its own written scope. Confirm the hand-over items before the project closes, including who receives the on-call alerts about the cluster itself.
Keeping the cluster healthy after go-live
The ongoing job for a clustered Alertmanager is to confirm, after every change, that all replicas still see each other and still receive every alert. Start by tracking the Alertmanager version against the Prometheus release cycle. Prometheus minor releases generally stop receiving bug fixes about six weeks after they ship, and the long-term support line receives fixes for one year, so pick a line deliberately and schedule upgrades inside its window. Upgrade one replica at a time and check gossip membership between steps, because a rolling restart that leaves a replica out of the cluster can go unnoticed until a real page is lost. Confirm with your vendor or the Alertmanager release notes which versions are current before you plan the window.
Peer count is the signal to watch most closely. Each Alertmanager should report the expected number of cluster members, and the cluster status should show all peers as connected. Alert on any drop in peer count, since a replica that silently leaves the gossip mesh still answers HTTP health checks while missing silences and notification state. Pair that with meta-monitoring of the Prometheus side, so that the instances Prometheus sends alerts to match the instances that form the cluster. When you replace a failed replica, give it the same cluster peer addresses and confirm it rejoins before you remove the old instance from any list. Because Prometheus is configured to send to every Alertmanager, a stale address in the list is a delivery risk, not just clutter.
Alertmanager state is small but important: active silences, notification log entries and routing configuration decide who gets paged and when. Put the alertmanager.yml file and the cluster flags under version control, route every change through review, and test routing changes before they reach production. Back up silences and configuration on a schedule your change process covers, and record who created each silence and why. Ask your operations team to confirm where the state lives and how it is restored, since a restore that rebuilds configuration but not silences can re-page on alerts that were deliberately muted. Finally, run a failover test after significant changes, such as stopping one replica during a controlled window and confirming that a test alert still reaches the receiver.
How DeployOpen scopes and delivers Alertmanager HA
DeployOpen plans, builds, tests and documents Alertmanager clusters inside the infrastructure you control, so paging keeps working when one replica fails. Each engagement starts from a written scope that names your replicas, network paths, receivers and the failover tests you need to see passing.
How we scope
- Inventory every Prometheus server and Alertmanager receiver that must keep paging during a replica failure.
- Agree in writing the replica count, cluster port layout, and which network segments the gossip traffic may cross.
- Confirm how each Prometheus targets every Alertmanager instance directly, with no load balancer in the alerting path.
How we build
- Configure the cluster flags, listen addresses and peer lists on each replica and document every port opened.
- Point each Prometheus at all Alertmanager instances and check that duplicate alerts are deduplicated before notifications leave.
- Run planned failover tests by stopping replicas and confirming that pages still reach each receiver without gaps.
How we hand over
- Deliver the configuration as code, with a runbook for adding or replacing a replica and for reading cluster status.
- Record the failover test results, including which receivers were checked and what was observed during each stop.
- Walk your operations team through the monitoring of the cluster itself so that a degraded peer is noticed quickly.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Ongoing upgrades, configuration changes and repeated failover testing are available as a retainer.
- Ask any partner to confirm how changes to receivers and routes will be tested before they reach production.

