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

BREAKING: Convert the process collector to use perflib #489

Merged
merged 1 commit into from
Mar 27, 2020

Conversation

carlpett
Copy link
Collaborator

This PR converts the process collector to use perflib rather than WMI. Without filters, it speeds up collection on my machine by 10-50x.
However, since the current implementation has filtering based on WQL, which we cannot support for perflib, this is a breaking change. I changed the flags to match what we have in eg logical_disk, with regexp white/blacklists.

Copy link
Collaborator

@martinlindhe martinlindhe left a comment

Choose a reason for hiding this comment

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

Very impressive results! looks great

but should probably be a major version bump due to breaking change

@YangLu1031
Copy link

Thanks @carlpett! Just curious when do we expect to be released?

@carlpett carlpett merged commit 58d259a into master Mar 27, 2020
@carlpett carlpett deleted the process-perflib branch March 27, 2020 19:15
@carlpett
Copy link
Collaborator Author

@YangLu1031 I think it would be nice to get a couple of the larger changes in at the same time so we don't need so many releases with breaking changes, but: soon.

@YangLu1031
Copy link

@carlpett I see, thanks! And how to create our own .msi file including this change?

anubhavg-icpl pushed a commit to anubhavg-icpl/windows_exporter that referenced this pull request Sep 22, 2024
…-perflib

BREAKING: Convert the process collector to use perflib
anubhavg-icpl pushed a commit to anubhavg-icpl/windows_exporter that referenced this pull request Sep 22, 2024
…munity#497)

With PR prometheus-community#489 `--collector.process.processes-where` no longer works, changing example to use `--collector.process.whitelist` with regexp
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