-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cs collector wmi_cs_logical_processors metric reports false data #786
Comments
systeminfoapi is using GetSystemInfo (lpSysteminfo) but doc here https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/ns-sysinfoapi-system_info says to use GetLogicalProcessorInformation for logical core count instead of GetSystemInfo.dwNumberOfProcessors
|
@benridley @retryW any input? |
@1sttec Thanks for that extra bit of info! What versions of Windows are you testing on? |
Server 2019 = 0 |
@1sttec the fix has been merged to master now. I've tested this on a 2016 machine and it worked ok, but I'm curious how it'll go on your machines since they were getting different values. If you get a chance to test please do so and let us know. Cheers! |
It appears windows_cs_logical_processor is now reporting sockets * cores but not the true logical processors # which would include those available via hyper-threading. |
Hi @1sttec, can you please try building my branch here and seeing if it reports the correct CPU count for you? It's looking good on my windows machine, but so was the old way - So I just want to make sure. Thank you ! |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
On two test desktops the cs collector wmi_cs_logical_processors metric returns 0. On a test server it returns 65535. Please advise.
version: 0.16.0
The text was updated successfully, but these errors were encountered: