Add check when retrieving the worker process id using performance counters #23647
Merged
narph merged 4 commits intoelastic:masterfrom Jan 26, 2021
Merged
Add check when retrieving the worker process id using performance counters #23647narph merged 4 commits intoelastic:masterfrom
narph merged 4 commits intoelastic:masterfrom
Conversation
Contributor
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
Contributor
|
Pinging @elastic/integrations (Team:Platforms) |
Contributor
Author
|
/test |
kaiyan-sheng
approved these changes
Jan 25, 2021
Contributor
kaiyan-sheng
left a comment
There was a problem hiding this comment.
LGTM, just added one question
| var workers []WorkerProcess | ||
| for key, values := range counterValues { | ||
| if strings.Contains(key, "\\ID Process") { | ||
| if strings.Contains(key, "\\ID Process") && values[0].Measurement != nil { |
Contributor
There was a problem hiding this comment.
Just curious, do we need to check values length first? like len(values) > 0
Contributor
Author
There was a problem hiding this comment.
a counter value is added by default in pdh_query_windows.go, if it does not contain the Measurement it will contain more info on the error. This is also picked up later.
6 tasks
narph
added a commit
to narph/beats
that referenced
this pull request
Jan 26, 2021
…nters (elastic#23647) * fix for test * add check * changelog (cherry picked from commit 3220d46)
6 tasks
narph
added a commit
to narph/beats
that referenced
this pull request
Jan 26, 2021
…nters (elastic#23647) * fix for test * add check * changelog (cherry picked from commit 3220d46)
v1v
added a commit
to v1v/beats
that referenced
this pull request
Jan 26, 2021
…pack-when-oss-changes * upstream/master: [DOCS] Add setup content to Kubernetes and Cloud Foundry docs (elastic#23580) [CI] Mandatory windows support for all the versions (elastic#23615) Add check when retrieving the worker process id using performance counters (elastic#23647) Remove 4912 evtx from testing (elastic#23669) Add missing SSL settings (elastic#23632) Update X-Pack Packetbeat config (elastic#23666) Use hostname check from verify.go to handle patterns in TLS certs (elastic#23661) Fix: Dissect Cisco ASA 302013 message usernames (elastic#21196) Add FAQ entry for MADV settings in older versions (elastic#23429) Sync fixes from Integration Package Testing (elastic#23424) [Filebeat] Add Cisco ASA message '302023' parsing (elastic#23092) [Elastic Log Driver] Change hosts config flag (elastic#23628) Audit and Authentication Policy Change Events (elastic#20684)
This file contains hidden or 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
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.
What does this PR do?
Adds check when retrieving the worker process id using performance counters
Why is it important?
Exception
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Related issues