-
Notifications
You must be signed in to change notification settings - Fork 814
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
[core][wmi] new WMI metric collection core #2011
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Haven't reviewed it yet but really excited about this one! |
Awesome job @yannmh ⭐!
Thanks again for moving forward with this! |
5d07acc
to
d7f2cbc
Compare
This was referenced Oct 30, 2015
d7f2cbc
to
3742b30
Compare
3742b30
to
41a1646
Compare
A lightweight Python WMI module wrapper built on top of `pywin32` and `win32com` extensions. **Specifications** * Based on top of the `pywin32` and `win32com` third party extensions * only * Compatible with `Raw`* and `Formatted` Performance Data classes * Dynamically resolve properties' counter types * Hold the previous/current `Raw` samples to compute/format new * values* * Fast and lightweight * Avoid queries overhead * Cache connections and qualifiers * Use `wbemFlagForwardOnly` flag to improve enumeration/memory * performance *\* `Raw` data formatting relies on the avaibility of the corresponding calculator. Please refer to `checks.lib.wmi.counter_type` for more information* Original discussion thread: #1952 Credits to @TheCloudlessSky (https://github.com/TheCloudlessSky) """
Speedup the Windows system check: * Drop third party `wmi` Python package in favor of the local `checks.lib.wmi` module * Use `PerfRawData` WMI Performance classes rather than `PerfFormattedData`
Speedup the Windows system check: * Drop third party `wmi` Python package in favor of the local `checks.lib.wmi` module
41a1646
to
8bd9bb0
Compare
Looking pretty awesome, let's |
olivielpeau
added a commit
that referenced
this pull request
Nov 3, 2015
[core][wmi] new WMI metric collection core
Awesome @yannmh! I'm super excited about these changes landing in 5.6.0! 🎉 ! |
@TheCloudlessSky Thank you for your excellent work on this refactor. Can you shoot me a note with your contact info via email? (ilan at datadoghq.com). Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Original discussion thread: #1952
Credits to @TheCloudlessSky (https://github.com/TheCloudlessSky) . Thanks a lot !!!
WMI module + CounterType calculators
A lightweight Python WMI module wrapper built on top of
pywin32
andwin32com
extensions.Specifications
pywin32
andwin32com
third party extensions onlyRaw
* andFormatted
Performance Data classesRaw
samples to compute/format new values*wbemFlagForwardOnly
flag to improve enumeration/memory performance__
Raw
data formatting relies on the avaibility of the corresponding calculator.Please refer to
checks.lib.wmi.counter_type
for more information*Windows system check speedup
Speedup the Windows system check:
wmi
Python package in favor of the localchecks.lib.wmi
modulePerfRawData
WMI Performance classes rather thanPerfFormattedData
WMI check speedup
Speedup the generic WMI check:
wmi
Python package in favor of the localchecks.lib.wmi
module