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

[receiver/hostmetricsreceiver] cpu scraper - extract cpu count when metric is enabled #32173

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

dloucasfx
Copy link
Contributor

Description:
As described in #32133 , in windows, the CPU count results of a wmi call with a hardcoded context timeout of 3 seconds.
This leads to an error when the wmi is slow or system is under heavy load, causing all the collected metrics to not be emitted.

The CPU count metrics, logical and physical, are not enabled by default and there is no reason to calculate it unless it's enabled.

Link to tracking Issue:
#32133

Testing:
unit test has been validated
Documentation:

…etric is enabled

Signed-off-by: Dani Louca <dlouca@splunk.com>
@crobert-1
Copy link
Member

crobert-1 commented Apr 4, 2024

Failing trace correctness test is frequency of #27295, unrelated to this change.

@atoulme
Copy link
Contributor

atoulme commented Apr 11, 2024

@dmitryax @braydonk please review as codeowners.

@dmitryax dmitryax merged commit 5488273 into open-telemetry:main Apr 11, 2024
174 of 175 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 11, 2024
rimitchell pushed a commit to rimitchell/opentelemetry-collector-contrib that referenced this pull request May 8, 2024
…etric is enabled (open-telemetry#32173)

**Description:** 
As described in
open-telemetry#32133
, in windows, the CPU count results of a wmi call with a hardcoded
context timeout of 3 seconds.
This leads to an error when the wmi is slow or system is under heavy
load, causing all the collected metrics to not be emitted.

The CPU count metrics, logical and physical, are not enabled by default
and there is no reason to calculate it unless it's enabled.

**Link to tracking Issue:** open-telemetry#32133

**Testing:** unit test has been validated
**Documentation:** <Describe the documentation added.>

Signed-off-by: Dani Louca <dlouca@splunk.com>
Co-authored-by: Antoine Toulme <antoine@lunar-ocean.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants