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
Use PDH native functions as alternative to Registry Calls #1350
Comments
I'm very much in favour of moving to PDH, though I'm not currently in a position to implement and test this myself. Are you comfortable implementing this, if you have the time? |
I play with PDH function today. However I got different values back. It seems like that the perfcounter exporter mutate the values (e.g. from 100ns to 1sec). ref: windows_exporter/pkg/perflib/unmarshal.go Lines 87 to 94 in 470f5d5
Additionally, I have no clue, what the "secondValue" is. windows_exporter/pkg/perflib/perflib.go Line 348 in 470f5d5
I can't find anything at the MS documentation and no clue, whats the source of |
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. |
@breed808 I thought after the future use of PHD in favor registry based collectors. Since we can't guarantee the exact metrics value between registry based collectors PHD, I had the idea the offer both source at once. What did you think would be the best possible approach here?
Everyone else in the community is invited to provide feedback here. |
Reading the documentation about PerfCounter
Microsoft highly recommends to fetch data via PHD function instead native registry. It seems like that PDH function are more performance.
We have issues like #724 and the exporter does not work well under load and the mentioned Zabbix exporter is using PDH functions, too. Also datadog and telegraf using PDF library.
Ref:
We should look into it, since the Registry supports V1 PerfCounter only, while the PDH functions support both V1 and V2.
Since telegraph is using the same OSS license, we should consider to use telegraf libraries as base instead starting from scratch. The OTEL collector is doing the same.
The text was updated successfully, but these errors were encountered: