I think there's not much point continuing this discussion. Prometheus does
not have exactly what you keep asking for, which is "to check" something
externally before sending an alert to alertmanager. All it can check is
what's in its timeseries database at that time.
However, you can achieve what you want by applying a silence to
alertmanager. Note that you can do this *before* an alert fires: a silence
is just a matching rule, saying "ignore alerts which match these labels".
Push out a silence matching {instance="X"} as soon as you know you're not
interested in alerts from device X, and you won't receive notifications for
that device.
If that doesn't meet your needs, then I'm sorry, but perhaps you should
look for different software which does, or write something yourself. You
could for example write a webhook receiver for alerts, which performs any
check you like before forwarding the alert to its final destination.
--
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/5bf95b79-80e4-42f0-8678-0b9e65cec5a4n%40googlegroups.com.