Why can't you just create a silence on all alerts in alertmanager? This is the very use case to not fire alerts when you know that they should not fire for some reason during a defined time period
On Wed, Apr 15, 2020 at 2:55 PM Brian Candler <[email protected]> wrote: > - source_match: > alertname: MaintenanceMode > target_match_re: > severity: 'warning|critical' > > In your case, to mute everything you can probably just remove the > target_match section entirely, and then I expect it will match all alerts > (except for MaintenanceMode, as there's a special case > <https://prometheus.io/docs/alerting/configuration/#inhibit_rule> which > prevents an alert from inhibiting itself) > > -- > 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/11f1622d-2640-4358-8fa6-f3e047c70e11%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/11f1622d-2640-4358-8fa6-f3e047c70e11%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Kuba Jakubik SRE Tech Lead Netguru - Building software for world changers [email protected] netguru.com [image: facebook] <https://www.facebook.com/netguru> [image: twitter] <https://twitter.com/netguru> [image: linkedin] <https://www.linkedin.com/company/netguru/> -- 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/CAD5xb_GBoJaQMPOUtUyWWHt%3DxWppnQyX5NgXL_pEAb710Gu%3DSw%40mail.gmail.com.

