Skip to content

Commit 9869d34

Browse files
authored
Merge pull request #2537 from simonpasquier/log-current-gomaxprocs
Log current value of GOMAXPROCS
2 parents 219744f + 2d05f2e commit 9869d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node_exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func main() {
183183
level.Warn(logger).Log("msg", "Node Exporter is running as root user. This exporter is designed to run as unprivileged user, root is not required.")
184184
}
185185
runtime.GOMAXPROCS(*maxProcs)
186-
level.Debug(logger).Log("msg", "Go MAXPROCS", "procs", *maxProcs)
186+
level.Debug(logger).Log("msg", "Go MAXPROCS", "procs", runtime.GOMAXPROCS(0))
187187

188188
http.Handle(*metricsPath, newHandler(!*disableExporterMetrics, *maxRequests, logger))
189189
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)