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 > <https://prometheus.io/docs/prometheus/latest/configuration/configuration/#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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/39ed601d-3069-403f-a302-fbd724b46339n%40googlegroups.com.

