jmb12686 / raspi-docker-stacks

Collection of Docker Stacks for usage on a multi-architecture Docker Swarm cluster (arm, amd64)
33 stars 7 forks source link

Alertmanager HA #6

Closed jmb12686 closed 4 years ago

jmb12686 commented 4 years ago

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.

jmb12686 commented 4 years ago

Merge into master