What is the difference between `matchers` and the old `match`/`match_re` syntax?
IntermediateConceptAlertmanager & Alerting
Answer
match (exact) and match_re (regex) maps are deprecated. matchers is a list of PromQL-style expressions that supports =, !=, =~, !~ in one place:
matchers:
- severity=~"page|critical"
- team!="sandbox"
The same syntax is used in inhibition (source_matchers, target_matchers) and silences. Alertmanager 0.27+ uses a stricter UTF-8 matcher parser, so quote values with special characters.
More on Alertmanager & Alerting
What does Alertmanager do that Prometheus does not?BeginnerExplain the Alertmanager routing tree.IntermediateWhat do `group_by`, `group_wait`, `group_interval` and `repeat_interval` control?IntermediateWhat is inhibition? Give an example.IntermediateWhat are silences and how do you create them?BeginnerWhat are mute time intervals and active time intervals?Intermediate