TUN-2816: cloudflared metrics server should be more discoverable
This commit is contained in:
parent
0cf6ce9aeb
commit
d03469b6d3
|
@ -43,7 +43,7 @@ func ServeMetrics(l net.Listener, shutdownC <-chan struct{}, logger *logrus.Logg
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
err = server.Serve(l)
|
err = server.Serve(l)
|
||||||
}()
|
}()
|
||||||
logger.WithField("addr", l.Addr()).Info("Starting metrics server")
|
logger.WithField("addr", fmt.Sprintf("%v/metrics", l.Addr())).Info("Starting metrics server")
|
||||||
// server.Serve will hang if server.Shutdown is called before the server is
|
// server.Serve will hang if server.Shutdown is called before the server is
|
||||||
// fully started up. So add artificial delay.
|
// fully started up. So add artificial delay.
|
||||||
time.Sleep(startupTime)
|
time.Sleep(startupTime)
|
||||||
|
|
Loading…
Reference in New Issue