January 2020
Intermediate to advanced
640 pages
16h 56m
English
Another handy Alertmanager feature that you should be aware of is alert inhibition. This feature allows the operator to mute notifications for a set of alerts when a specific alert is currently firing.
When the Alertmanager loads its configuration file, it looks for the list of alert inhibition rules under the top-level inhibit_rules key. Each rule entry must adhere to the following schema:
source_match: [ <labelname>: <labelvalue>, ... ] source_match_re: [ <labelname>: <regex>, ... ] target_match: [ <labelname>: <labelvalue>, ... ] target_match_re: [ <labelname>: <regex>, ... ] [ equal: '[' <labelname>, ... ']' ]
The source_match and source_match_re blocks work as selectors for the alert that activates the inhibition ...