On Thu, 13 May 2021 at 10:24, Morven Cao <[email protected]> wrote: > Thanks Brian, > Let me try to explain. > > I setup one prometheus with two Alertmanagers in my k8s cluster, one of > the two Alertmanagers is in-cluster and configured by dynamic discovery, > while another Alertmanager is out of the cluster and it is statically > configured via remote URL. > > What I'm try to do is adding additional label, for example, > cluster=<cluster-name> to alerts sent to remote Alertmanager, but I don't > want to add the label > for the same alert sent to the in-cluster Alertmanager. > > Is it possible? > > No, that's not possible. You want all alertmanagers to get the same labels, otherwise you'll get duplicate notifications. I'd recommend setting the cluster label on all alerts, generally via external_labels.
-- Brian Brazil www.robustperception.io -- You received this message because you are subscribed to the Google Groups "Prometheus Users" 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-users/CAHJKeLqe7rgUcF87%2Bg46d8nr3gHLZ-z_VGJzj-UHrr%2Bcf0S8nw%40mail.gmail.com.

