-
Notifications
You must be signed in to change notification settings - Fork 707
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
Refactor collectors #1324
Refactor collectors #1324
Conversation
e5ed61a
to
24b7092
Compare
24b7092
to
d3c54d4
Compare
ee6eda1
to
11f143e
Compare
@breed808 please let me know if you need assistance here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Phew, I think this is the largest change I've ever reviewed! Great work as always, I've left a few comments querying some of the changes.
Thanks for the review! Sorry for the size. But i had no idea to minimize the changes. After merge, I would create an additional PR which embeddeds the wmi library, since there is no commit over years. I'm also interrest to help as maintainer here, since our company is using this exporter in production. |
Signed-off-by: Jan-Otto Kröpke <[email protected]>
487aed9
to
087844d
Compare
Signed-off-by: Jan-Otto Kröpke <[email protected]>
36524fc
to
506e07c
Compare
Signed-off-by: Jan-Otto Kröpke <[email protected]>
506e07c
to
6824d3f
Compare
Re-add DHCP perflib dependency Fixes prometheus-community#1259 Signed-off-by: Jan-Otto Kröpke <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for your efforts with this, I imagine it took longer to implement than it did for me to review :)
…bals Refactor collectors
Replaces #1227
Fixes #1259
This PR restructors the collectors into separate packags.
Packags level variables are moved into collectors struct. This allows external libraries to call windows_exporter multiple times.
The defaults collectors are tested under Windows Server 2022 and are working fine. Test and Bench are green.
@mattdurham Maybe you can have an look here, for Grafana Agent.
@breed808 I do some test on windows server and windows server, both working fine. However maybe a RC version as pre-release should be usefull.