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.go | ||
alert_add.go | ||
alert_query.go | ||
check_config.go | ||
check_config_test.go | ||
config.go | ||
root.go | ||
routing.go | ||
silence.go | ||
silence_add.go | ||
silence_expire.go | ||
silence_import.go | ||
silence_query.go | ||
silence_update.go | ||
test_routing.go | ||
test_routing_test.go | ||
utils.go |