Thank you so much  , it worked.  
On Sunday, September 3, 2023 at 9:24:06 AM UTC+1 Brian Candler wrote:

> What you need is to use routing rules to route the alerts which are not of 
> interest to a null receiver.  Something like this (untested):
>
> route:
>   receiver: my_normal_receiver
>   routes:
>     - receiver: null
>       match:
>         uri: '/work/info'
>
> receivers:
>   - name: null
>   - name: my_normal_receiver
>     email_configs:
>       - ... etc
>
> The routing tree will first process all the rules in the 'routes' section, 
> and if none of them match, it falls back to the sibling 'receiver' value. 
> You can test them using the tree viewer at 
> https://prometheus.io/webtools/alerting/routing-tree-editor/
>
> (Inhibit rules are meant for something else - when alert X is firing, then 
> silence alert Y - and there must be some common labels to correlate them 
> with an "equal" rule. See the documentation here 
> <https://prometheus.io/docs/alerting/latest/alertmanager/#inhibition> and 
> here 
> <https://prometheus.io/docs/alerting/latest/configuration/#inhibition-related-settings>
>  and 
> the example <https://github.com/prometheus/alertmanager#example>)
>
> On Sunday, 3 September 2023 at 07:31:40 UTC+1 Ashwini Thillai wrote:
>
>> I have got an alert to report slow HTTP Endpoints on our system. I would 
>> like to silence an alert with inhibit_rules for certain URIs using the 
>> label filters but alertmanager seems to error this out as an invalid label 
>> name. 
>>
>> My usecase is to keep the alert firing but silence only when below 
>> condition ( uri label) is met.  i'd appreciate any leads/support. Thank you
>>
>> For Example:
>> inhibit_rules: 
>> - target_match: 
>> uri: '/work/info' 
>> source_match: 
>> alertname: 'Slow HTTP Endpoints ' 
>>
>

-- 
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/a0744d86-d1f9-400f-b58d-6d9ecf817108n%40googlegroups.com.

Reply via email to