diff --git a/internal/cli/server/server.go b/internal/cli/server/server.go index afeb25f3d1..4d87d64608 100644 --- a/internal/cli/server/server.go +++ b/internal/cli/server/server.go @@ -364,8 +364,8 @@ func (s *Server) setupMetrics(config *TelemetryConfig, serviceName string) error timeouts := rpc.DefaultHTTPTimeouts promServer := &http.Server{ - Addr: config.PrometheusAddr, - Handler: prometheusMux, + Addr: config.PrometheusAddr, + Handler: prometheusMux, ReadTimeout: timeouts.ReadTimeout, ReadHeaderTimeout: timeouts.ReadHeaderTimeout, WriteTimeout: timeouts.WriteTimeout,