From 423eafcc97152966e868c9a25b5a016a29cb594d Mon Sep 17 00:00:00 2001 From: nexustar Date: Tue, 22 Nov 2022 16:39:58 +0800 Subject: [PATCH] cluster: avoid redirect when grafana set root_url (#2082) --- pkg/cluster/spec/grafana.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/spec/grafana.go b/pkg/cluster/spec/grafana.go index 0aa56b4a0e..29611fccfc 100644 --- a/pkg/cluster/spec/grafana.go +++ b/pkg/cluster/spec/grafana.go @@ -115,7 +115,7 @@ func (c *GrafanaComponent) Instances() []Instance { s.DeployDir, }, StatusFn: func(_ context.Context, timeout time.Duration, _ *tls.Config, _ ...string) string { - return statusByHost(s.Host, s.Port, "", timeout, nil) + return statusByHost(s.Host, s.Port, "/login", timeout, nil) }, UptimeFn: func(_ context.Context, timeout time.Duration, tlsCfg *tls.Config) time.Duration { return UptimeByHost(s.Host, s.Port, timeout, tlsCfg)