Thank you very much Brian. Our file discovery is happened every 5mins to get the latest target list. We are worry that during this 5 mins if there is one of the target state changes from monitored state to the state which we don't want to monitor, actually we don't want to receive the alert from this target, but at this time point, Prometheus doesn't know the target state change, still trigger an alert.
On Thursday, December 9, 2021 at 7:45:36 PM UTC+8 Brian Candler wrote: > I forgot to say: if you don't want to code directly to the alertmanager > API, there is amtool <https://github.com/prometheus/alertmanager#amtool> > which gives you a simple command-line frontend: > > amtool silence add instance=device1 > amtool silence expire instance=device1 > > You should be able to prototype something very easily using 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/d6b701f2-3bd6-410e-97b4-8fad949be658n%40googlegroups.com.

