Sorry missed several words:

So we want to have this implement: before triggerring an alert, Prometheus 
sends a request to the inventory management system to get the current state 
of the target, if the target is with the state we don't want to monitor, 
then no alert generated. Can Prometheus have this kind of checking with 
inventory management system?

On Friday, December 10, 2021 at 9:56:03 AM UTC+8 nina guo wrote:

> 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/c04952ad-b119-49a7-b2a3-f32ca115c70cn%40googlegroups.com.

Reply via email to