Skip to content

Commit

Permalink
cluster: avoid redirect when grafana set root_url (#2082)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaaaaaaang committed Nov 23, 2022
1 parent d46f28d commit 423eafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/spec/grafana.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 423eafc

Please sign in to comment.