Groups
Groups
Sign in
Groups
Groups
Prometheus Users
Conversations
About
Send feedback
Help
disable all alerts for a job
84 views
Skip to first unread message
mel
unread,
Mar 12, 2024, 8:51:22 AM
3/12/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Prometheus Users
How do I disable all alerts for a job without having to modify each alert rule and excluding the job?
Brian Candler
unread,
Mar 12, 2024, 10:13:50 AM
3/12/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 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.
mel
unread,
Mar 12, 2024, 10:47:34 AM
3/12/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Prometheus Users
ah, thank you for the suggestions
Reply all
Reply to author
Forward
0 new messages