diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go index 4c3ede362e..0e547deaf9 100644 --- a/cmd/prometheus/main.go +++ b/cmd/prometheus/main.go @@ -671,6 +671,7 @@ func main() { memlimit.FromSystem, ), ), + memlimit.WithLogger(logger.With("component", "automemlimit")), ); err != nil { logger.Warn("automemlimit", "msg", "Failed to set GOMEMLIMIT automatically", "err", err) }