Merge pull request #1101 from prymitive/warn-am-0.17-18

chore(backend): log a warning when alertmanager 0.17 or 0.18 is detected
This commit is contained in:
Łukasz Mierzwa
2019-10-30 08:35:17 +00:00
committed by GitHub

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
}