prometheus operator v0.93.1

AlertmanagerConfig.spec.route.matchers

matchers defines the list of matchers that the alert's labels should match. For the first level route, the operator removes any existing equality and regexp matcher on the `namespace` label and adds a `namespace: <object namespace>` matcher.

4 fields
AlertmanagerConfig.spec.route.matchers fields and descriptions
Field / TypeDescription
matchType
string

matchType defines the match operation available with AlertManager >= v0.22.0. Takes precedence over Regex (deprecated) if non-empty. Valid values: "=" (equality), "!=" (inequality), "=~" (regex match), "!~" (regex non-match).

  • enum: ["!=","=","=~","!~"]
name
string required

name defines the label to match. This specifies which alert label should be evaluated.

  • minLength: 1
regex
boolean

regex defines whether to match on equality (false) or regular-expression (true). Deprecated: for AlertManager >= v0.22.0, `matchType` should be used instead.

value
string

value defines the label value to match. This is the expected value for the specified label.