Implement process uptime metric (#666)

* Implement process uptime metric
* Add clarification comment
* Add another clarification comment
This commit is contained in:
Dan Sosedoff
2023-03-30 12:51:49 -05:00
committed by GitHub
parent 941c0acea3
commit 08bbb1537e
5 changed files with 35 additions and 7 deletions

View File

@@ -307,6 +307,8 @@ func Run() {
}
}
// Start a separate metrics http server. If metrics addr is not provided, we
// add the metrics endpoint in the existing application server (see api.go).
if options.MetricsEnabled && options.MetricsAddr != "" {
go startMetricsServer()
}