cpu: Fetch performance counter via PDH.dll via feature toggle. (off by default) (#1627)

This commit is contained in:
Jan-Otto Kröpke
2024-09-13 23:10:57 +02:00
committed by GitHub
parent 2e4ba9984d
commit 5f36a81613
4 changed files with 231 additions and 3 deletions

View File

@@ -217,6 +217,10 @@ func run() int {
logger.Info("Enabled collectors: " + strings.Join(enabledCollectorList, ", "))
if utils.PDHEnabled() {
logger.Info("Using performance data helper from PHD.dll for performance counter collection. This is in experimental state.")
}
mux := http.NewServeMux()
mux.Handle("GET /health", httphandler.NewHealthHandler())
mux.Handle("GET /version", httphandler.NewVersionHandler())