Skip to content
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

[windows] add PDH helpers #251

Merged
merged 4 commits into from
Nov 12, 2024

Conversation

VihasMakwana
Copy link
Contributor

PDH (Performance Data Helper) is a high-level API for collecting performance counters.

They're already used in metricbeat. See here.
We also need the PDH helpers in elastic-system-metrics for collecting CPU metrics for this issue.

This PR introduces them to elastic-agent-libs and we will eventually remove them from beats.

Related elastic/beats#40926

@VihasMakwana VihasMakwana requested a review from a team as a code owner November 11, 2024 13:40
@VihasMakwana VihasMakwana requested review from faec and leehinman and removed request for a team November 11, 2024 13:40
Copy link
Contributor

@leehinman leehinman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the metricbeat/helper/windows/pdh has definitions for windows_arm.go and windows_arm64.go. Is there a reason to skip or include these?

@VihasMakwana
Copy link
Contributor Author

It looks like the metricbeat/helper/windows/pdh has definitions for windows_arm.go and windows_arm64.go. Is there a reason to skip or include these?

i've included them now. We should include these we'll eventually remove the ones in beats.

Copy link
Contributor

@leehinman leehinman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once you make the linter happy :-)

@VihasMakwana VihasMakwana force-pushed the pdh-windows-helpers branch 2 times, most recently from 1457347 to b40e55d Compare November 12, 2024 05:42
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@VihasMakwana VihasMakwana merged commit 5ba501c into elastic:main Nov 12, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants