[prometheus-users] Re: disable all alerts for a job

2024-03-12 Thread mel
ah, thank you for the suggestions

On Tuesday, March 12, 2024 at 7:13:50 AM UTC-7 Brian Candler wrote:

> option 1: filter them out in alertmanager, with an extra routing rule that 
> matches on the 'job' label and delivers to a null receiver.
> option 1b: create a long-lived silence in alertmanager that matches on the 
> 'job' label
>
> option 2: drop them in alert_relabel_configs 
> 
>
> But it may be clearer in the long term to modify the alerting expressions: 
> if you change foo to foo{job!="bar"}, then the intention is obvious.
>
> On Tuesday 12 March 2024 at 12:51:22 UTC mel wrote:
>
>> How do I disable all alerts for a job without having to modify each alert 
>> rule and excluding the job?
>>
>

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/39ed601d-3069-403f-a302-fbd724b46339n%40googlegroups.com.


[prometheus-users] Re: disable all alerts for a job

2024-03-12 Thread 'Brian Candler' via Prometheus Users
option 1: filter them out in alertmanager, with an extra routing rule that 
matches on the 'job' label and delivers to a null receiver.
option 1b: create a long-lived silence in alertmanager that matches on the 
'job' label

option 2: drop them in alert_relabel_configs 


But it may be clearer in the long term to modify the alerting expressions: 
if you change foo to foo{job!="bar"}, then the intention is obvious.

On Tuesday 12 March 2024 at 12:51:22 UTC mel wrote:

> How do I disable all alerts for a job without having to modify each alert 
> rule and excluding the job?
>

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/5935cc12-9f7a-49ee-aa7b-2d88ddbe1492n%40googlegroups.com.