Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Configuring Prometheus Alertmanager for High Availability

Prometheus Alertmanager is a great way to handle your Prometheus alerts. However, a lone instance of Alertmanager can serve as a single point of failure if it goes down. Luckily, you can configure Alertmanager to run in a multi-instance cluster to provide failure resilience. In this hands-on lab, you will make an existing single-instance Alertmanager setup highly available by adding an additional instance.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 12, 2025
Duration
1h 0m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Configure the Two Alertmanager Instances to Form a Cluster
    1. Log in to both the Prometheus Server and Alertmanager 2 server.

    2. On both servers, edit the Alertmanager unit file:

      sudo vi /etc/systemd/system/alertmanager.service
      
    3. Locate the ExecStart section. On each server, add the other server's private IP address using the cluster.peer flag.

    4. On the Prometheus Server:

      ExecStart=/usr/local/bin/alertmanager 
        --config.file /etc/alertmanager/alertmanager.yml 
        --storage.path /var/lib/alertmanager/ 
        --cluster.peer=10.0.1.102:9094
      
    5. On the Alertmanager 2 server:

      ExecStart=/usr/local/bin/alertmanager 
        --config.file /etc/alertmanager/alertmanager.yml 
        --storage.path /var/lib/alertmanager/ 
        --cluster.peer=10.0.1.101:9094
      
    6. On both servers, reload the unit file:

      sudo systemctl daemon-reload
      
    7. On the Prometheus Server, restart Alertmanager:

      sudo systemctl restart alertmanager
      
    8. On the Alertmanager 2 server, enable and start Alertmanager:

      sudo systemctl enable alertmanager
      
      sudo systemctl start alertmanager
      
    9. Test your cluster setup by creating a silence on one instance and verifying it appears on the other instance. Access both instances in a browser: http://<PUBLIC_IP>:9093

    10. On one instance, click Silences and create a new silence.

    11. Click Silences on the other instance and verify the silence you created appears.

  2. Challenge

    Configure Prometheus to Use Your Multi-Instance Alertmanager Setup
    1. On the Prometheus Server, edit the Prometheus configuration file:

      sudo vi /etc/prometheus/prometheus.yml
      
    2. Add the new Alertmanager (10.0.1.102:9093) to the list of Alertmanager targets:

      alerting:
        alertmanagers:
        - static_configs:
          - targets:
            - localhost:9093
            - 10.0.1.102:9093
      
    3. Restart Prometheus to reload the config:

      sudo systemctl restart prometheus
      
    4. Access the Prometheus server in a browser: http://<PROMETHEUS_SERVER_PUBLIC_IP>:9090

    5. Click Status > Runtime & Build Information.

    6. Verify both of your Alertmanagers appear under the Alertmanagers section.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight