mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
Alerting: Retry readiness check to the remote Alertmanager on 5xx status code responses (#81174)
This commit is contained in:
parent
c9ff6a9ab9
commit
fbbda6c05e
@ -107,7 +107,7 @@ func (am *Alertmanager) IsReadyWithBackoff(ctx context.Context) (bool, error) {
|
||||
}
|
||||
|
||||
if status != http.StatusOK {
|
||||
if status/400 == 1 {
|
||||
if status >= 400 && status < 500 {
|
||||
am.logger.Debug("Ready check failed with non-retriable status code", "attempt", attempts, "status", status)
|
||||
return false, fmt.Errorf("ready check failed with non-retriable status code %d", status)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user