mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-27 08:32:15 +00:00
50b87ac720
The documentation stated that the `alertname=` part of a matcher could be dropped and it would be assumed that the first value was the alertname. This behavior was only honored if there was a single matcher, but failed if there were multiple. Any time we have one or more matchers, check to see if the first matcher fails parsing. If so, assume it's intended to be used as the alertname, and append that value to the matcher. Signed-off-by: Stuart Nelson <stuartnelson3@gmail.com> |
||
---|---|---|
.. | ||
config | ||
format | ||
testdata | ||
alert_add.go | ||
alert_query.go | ||
alert.go | ||
check_config_test.go | ||
check_config.go | ||
config.go | ||
root.go | ||
routing.go | ||
silence_add.go | ||
silence_expire.go | ||
silence_import.go | ||
silence_query.go | ||
silence_update.go | ||
silence.go | ||
test_routing_test.go | ||
test_routing.go | ||
utils.go |