Alerting: Check whether the internal Alertmanager is ready in remote secondary mode (#79406)

Alerting: Check whether the internal Alertmanager is ready in remote secondary
This commit is contained in:
Santiago
2023-12-12 18:33:11 +01:00
committed by GitHub
parent 937a7ed6d9
commit 1a5c2cb55b
2 changed files with 3 additions and 15 deletions

View File

@@ -98,9 +98,6 @@ func (fam *RemoteSecondaryForkedAlertmanager) StopAndWait() {
}
func (fam *RemoteSecondaryForkedAlertmanager) Ready() bool {
// Both Alertmanagers must be ready.
if ready := fam.remote.Ready(); !ready {
return false
}
// We only care about the internal Alertmanager being ready.
return fam.internal.Ready()
}