The listen address is the one that alertmanager binds to. Generally, this can be 0.0.0.0 (all interfaces), I believe that is the default and thus sometimes omitted.
It will try to guess which address it can be reached at by other AMs (which address it should advertise to them). In some circumstances this doesn't work right. A Kubernetes pod probably isn't one of those circumstances, but specifying the address explicitly doesn't hurt either. So in short, I would expect everything to work out of the box in a standard Kubernetes pod, but you can be more explicit if you want to be. /MR On Sat, Nov 14, 2020, 20:41 Dudi Cohen <[email protected]> wrote: > Hi all, I would like to configure Alertmanager for high availability in > k8s. > Can anyone please explain the difference > between `cluster.advertise-address` and `cluster.listen-address`? I've seen > either one used in different examples, sometimes with `0.0.0.0` and > sometimes with `$(POD_IP)` so i'm also not sure what the address should be. > The documentation is a bit unclear regarding the differences: > "The cluster.advertise-address flag is required if the instance doesn't > have an IP address that is part of RFC 6890 > <https://tools.ietf.org/html/rfc6890> with a default route." > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-developers/4b78b5fd-4e04-4276-a8d0-6388d8398413n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-developers/4b78b5fd-4e04-4276-a8d0-6388d8398413n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Prometheus Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAMV%3D_gbycNqMd%2BKAVabWrATUpWbYrYv_THH6otdgCtsz%2Bed8dA%40mail.gmail.com.

