alertmanager/cli
Julien Pivotto f684896d85
amtool: Detect version drift and warn users (#2672)
* amtool: Detect version drift and warn users

This change detects the alertmanager version when initiating the client.
It ignores most errors since I expect amtool to fail later.

If amtool is not compiled with proper version, we do not do anything
either.

We use MajorMinor for now as we have not reach 1.0, but we still allow
the bugfix version number (Z in x.y.Z) to differ.

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>

* Add version check

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-08-09 11:06:09 +02:00
..
config
format Fix empty isEqual in amtool. (#2668) 2021-08-06 11:11:16 +02:00
testdata
alert.go
alert_add.go cli: update amtool to use apiv2 2019-03-29 09:11:09 -05:00
alert_query.go *: remove dependency on github.com/prometheus/prometheus (#2009) 2019-09-16 10:56:29 +02:00
check_config.go config: use the origin field instead of local var (#1999) 2019-08-26 14:01:40 +02:00
check_config_test.go
cluster.go Add cluster command to show cluster and peer statuses. (#2256) 2020-05-18 15:25:15 +02:00
config.go cli: update amtool to use apiv2 2019-03-29 09:11:09 -05:00
root.go amtool: Detect version drift and warn users (#2672) 2021-08-09 11:06:09 +02:00
routing.go Add negative matchers for routing. (#2434) 2021-01-15 21:11:39 +01:00
silence.go
silence_add.go cli: Parse properly all matcher types 2021-02-16 14:22:59 +02:00
silence_expire.go cli: update amtool to use apiv2 2019-03-29 09:11:09 -05:00
silence_import.go Update go-openapi to latest 2021-03-10 19:00:22 +01:00
silence_query.go *: remove dependency on github.com/prometheus/prometheus (#2009) 2019-09-16 10:56:29 +02:00
silence_update.go cli: avoid nil dereference in silence update (#2427) 2020-12-02 17:02:12 +01:00
template.go cli: add new template render command (#2538) 2021-08-04 13:58:33 +02:00
template_render.go cli: add new template render command (#2538) 2021-08-04 13:58:33 +02:00
test_routing.go cli: update amtool to use apiv2 2019-03-29 09:11:09 -05:00
test_routing_test.go config: use the origin field instead of local var (#1999) 2019-08-26 14:01:40 +02:00
utils.go cli: Parse properly all matcher types 2021-02-16 14:22:59 +02:00