Enable high availability alertmanager cluster using custom built image to support swarm internal overlay networking.
alertmanager docker service has 2 replicas, and service discovery is utilized by prometheus->alertmanager and for setting the alertmanager cluster.peer-address.
Custom jmb12686/alertmanager-swarm implementation is used to support Docker Swarm internal overlay networking, and the configuration/setting of the --cluster.advertise-address. Without the custom image, the alertmanager's keep connecting and dropping every couple seconds, never forming a healthy cluster state.
The custom image (see more in the github.com/jmb12686/docker-swarm-alertmanager repo) sets the cluster advertise-address to the container's eth1 IP.
Enable high availability alertmanager cluster using custom built image to support swarm internal overlay networking.
alertmanager docker service has 2 replicas, and service discovery is utilized by prometheus->alertmanager and for setting the alertmanager cluster.peer-address.
Custom jmb12686/alertmanager-swarm implementation is used to support Docker Swarm internal overlay networking, and the configuration/setting of the --cluster.advertise-address. Without the custom image, the alertmanager's keep connecting and dropping every couple seconds, never forming a healthy cluster state.
The custom image (see more in the github.com/jmb12686/docker-swarm-alertmanager repo) sets the cluster advertise-address to the container's eth1 IP.