If the target is removed from the scrape config the alert will resolve anyway. If you want to persist the alert set send_resolved to false in alertmanager.
On Thu, Mar 26, 2020, 3:16 PM Stuart Clark <[email protected]> wrote: > On 26/03/2020 19:09, Amanda H. L. de Andrade wrote: > > Hi, > > > > If a remove a target that has a alert in firing state, alertmanager > > sends a "resolved" alert to ours receivers. > > > > How can I prevent that? > > > That's expected as the alert is no longer firing. > > > -- > Stuart Clark > > -- > 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/01b812c3-a941-5dd7-449a-f6f86c30b9ed%40Jahingo.com > . > -- 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/CAKimyZt_-xYD85GyYWtORg3Pg_VeRmh4P32_Dm6nPi1gEOy2uQ%40mail.gmail.com.

