alertmanager/cli
stuart nelson 50b87ac720
Fixes #1570 (#1575)
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>
2018-10-08 13:06:12 +02:00
..
config fix amtool: Fixed config path check in amtool (#1538) 2018-09-03 06:06:01 +02:00
format Fix a bunch of unhandled errors (#1501) 2018-08-05 15:38:25 +02:00
testdata feat: added routing tools to amtool (#1511) 2018-08-22 16:41:09 +02:00
alert_add.go Fix rfc3339 example texts (#1526) 2018-08-23 16:17:27 +02:00
alert_query.go Fixes #1570 (#1575) 2018-10-08 13:06:12 +02:00
alert.go Add support for adding alerts using amtool (#1461) 2018-07-16 16:29:04 +02:00
check_config_test.go *: add missing license headers 2018-05-14 17:37:13 +02:00
check_config.go Fix a bunch of unhandled errors (#1501) 2018-08-05 15:38:25 +02:00
config.go feat: added routing tools to amtool (#1511) 2018-08-22 16:41:09 +02:00
root.go Add timeout support to amtool commands (#1471) 2018-07-17 09:50:48 +02:00
routing.go feat: added routing tools to amtool (#1511) 2018-08-22 16:41:09 +02:00
silence_add.go Fix rfc3339 example texts (#1526) 2018-08-23 16:17:27 +02:00
silence_expire.go Add timeout support to amtool commands (#1471) 2018-07-17 09:50:48 +02:00
silence_import.go Add timeout support to amtool commands (#1471) 2018-07-17 09:50:48 +02:00
silence_query.go Fix a bunch of unhandled errors (#1501) 2018-08-05 15:38:25 +02:00
silence_update.go Fix rfc3339 example texts (#1526) 2018-08-23 16:17:27 +02:00
silence.go Add timeout support to amtool commands (#1471) 2018-07-17 09:50:48 +02:00
test_routing_test.go feat: added routing tools to amtool (#1511) 2018-08-22 16:41:09 +02:00
test_routing.go feat: added routing tools to amtool (#1511) 2018-08-22 16:41:09 +02:00
utils.go feat: added routing tools to amtool (#1511) 2018-08-22 16:41:09 +02:00