mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix remote Alertmanager readiness check path (#95063)
This commit is contained in:
parent
b475b8f648
commit
4f8f82f5f1
@ -71,7 +71,7 @@ func (am *Alertmanager) IsReadyWithBackoff(ctx context.Context) (bool, error) {
|
|||||||
ctx, cancel := context.WithCancel(ctx)
|
ctx, cancel := context.WithCancel(ctx)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
readyURL := am.url.JoinPath(am.url.Path, alertmanagerAPIMountPath, alertmanagerReadyPath)
|
readyURL := am.url.JoinPath(alertmanagerAPIMountPath, alertmanagerReadyPath)
|
||||||
|
|
||||||
attempt := func() (int, error) {
|
attempt := func() (int, error) {
|
||||||
req, err := http.NewRequestWithContext(ctx, http.MethodGet, readyURL.String(), nil)
|
req, err := http.NewRequestWithContext(ctx, http.MethodGet, readyURL.String(), nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user