On Thu, 13 May 2021 at 08:29, Morven Cao <[email protected]> wrote: > I have a case in which one prometheus configured with two Alertmanagers(A > and B). > I want to add additional label for alert send to Alertmanager A, but not > for alert sent to Alertmanager B. >
Can you explain more about what you're trying to do with your setup? Things are designed for all the alertmanagers you are sending to to be part of the same cluster, and thus it's not considered a failure if you can only talk to one alertmanager. Thus the setup you describe is unsafe. I'd recommend combining these alertmanagers into one. Brian > > I know I can add *external_labels* to prometheus configuration, but the > label wil be added to alerts for both Alertmanagers. > > Maybe *alert_relabel_configs* helps, but I don't know how to distinguish > the two Alertmanagers in *alert_relabel_configs.* > > Appreciate it if someone can help on this. > > -- > 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/3a9acc69-08d8-4655-a15d-30f5e8bdb6d0n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/3a9acc69-08d8-4655-a15d-30f5e8bdb6d0n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAHJKeLpTBdhZUDat9Vwjg4x%3DF-Obw2pbXBfGh_HesFNwgRDLsQ%40mail.gmail.com.

