chore(backend): log a warning when alertmanager 0.17 or 0.18 is detected

Fixes #1099
This commit is contained in:
Łukasz Mierzwa
2019-10-29 21:37:40 +00:00
parent c29fffc3e5
commit 990a3de46b

View File

@@ -81,6 +81,10 @@ func (am *Alertmanager) probeVersion() string {
return fakeVersion
}
if version == "0.17.0" || version == "0.18.0" {
log.Warningf("Alertmanager %s might return incomplete list of alert groups in the API, please upgrade to >=0.19.0, see https://github.com/prymitive/karma/issues/812", version)
}
return version
}