-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Perfmon metricset improvements #26886
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
Pinging @elastic/integrations (Team:Platforms) |
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.
Thanks for working on this! left a few comments & questions
This pull request is now in conflicts. Could you fix it? 🙏
|
@@ -218,6 +234,7 @@ func (q *Query) ExpandWildCardPath(wildCardPath string) ([]string, error) { | |||
if err == PDH_MORE_DATA { | |||
expdPaths, err = PdhExpandCounterPath(utfPath) | |||
} | |||
expdPaths, err = PdhExpandCounterPath(utfPath) |
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.
is this intended? IT would look like you would call PdhExpandCounterPath
many times here (both in case of error and no error)
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.
it was not intended, just for testing purposes, refactored the func
This pull request is now in conflicts. Could you fix it? 🙏
|
This pull request is now in conflicts. Could you fix it? 🙏
|
CHANGELOG.next.asciidoc
Outdated
- Use PROGRAMDATA environment variable instead of C:\ProgramData for windows install service {pull}22874[22874] | ||
- Fix reporting of cgroup metrics when running under Docker {pull}22879[22879] | ||
- Fix typo in config docs {pull}23185[23185] | ||
- Add FAQ entry for madvdontneed variable {pull}23429[23429] | ||
- Fix panic due to unhandled DeletedFinalStateUnknown in k8s OnDelete {pull}23419[23419] | ||
- Fix error loop with runaway CPU use when the Kafka output encounters some connection errors {pull}23484[23484] | ||
- Fix issue discovering docker containers and metadata after reconnections {pull}24318[24318] | ||
- Fix ILM alias creation when write alias exists and initial index does not exist {pull}26143[26143] | ||
- Omit full index template from errors that occur while loading the template. {pull}25743[25743] | ||
- In the script processor, the `decode_xml` and `decode_xml_wineventlog` processors are now available as `DecodeXML` and `DecodeXMLWineventlog` respectively. | ||
- Fix encoding errors when using the disk queue on nested data with multi-byte characters {pull}26484[26484] | ||
- Improve `perfmon` metricset performance. {pull}26886[26886] |
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.
something went wrong with the last merge
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.
fixed it, thanks
* work on perfmon improvements * changelog * rever changes * complete checks * review action * fmt * clean up * docs * fix tests * update * fix tests * fix changelog (cherry picked from commit 12c8dae)
What does this PR do?
perfmon.refresh_wildcard_counters
, default is disabled nowPdhCollectQueryDataEx
instead of waiting for at least 1 sec and calling PdhCollectQueryData again. With PdhCollectQueryDataEx we can retrieve the values after they are available.Instead, a check is done if the query has been expanded, if not, the api is called again.
Why is it important?
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Event collection looks more consistent, also not a rise in CPU usage or thread/handle count.
Related issues