mirror of
https://github.com/prometheus/alertmanager.git
synced 2026-02-05 15:45:34 +01:00
This commit fixes a bug where UTF-8 characters are not allowed in the Equal field for inhibition rules, even when UTF-8 strict mode is enabled. This bug occurred because we forgot to override the validation in model.LabelName. I have copied the same logic used for GroupBy with GroupByStr, adding EqualStr. We would like to upgrade prometheus/common in future and use the validation there instead, but it presents challenges with downstream projects like Mimir and Cortex where, at present, UTF-8 can be enabled and disabled in separate components at the same time, which is not supported in prometheus/common. Signed-off-by: George Robinson <george.robinson@grafana.com>
11 lines
167 B
YAML
11 lines
167 B
YAML
route:
|
|
receiver: test
|
|
receivers:
|
|
- name: test
|
|
inhibit_rules:
|
|
- source_matchers:
|
|
- foo=bar
|
|
target_matchers:
|
|
- bar=baz
|
|
equal: ['qux', 'corge']
|