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/podman] Fix precision for cpu metrics #35633

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tosuke
Copy link

@tosuke tosuke commented Oct 6, 2024

Description

Podman provides cpu time metrics with nanosecond precision, but the current implementation truncates this to an integer with second precision, which loses a lot of information, so I made it a floating point number to preserve precision.

Testing

Use assert.InDelta for tests with floating point numbers.

Copy link

linux-foundation-easycla bot commented Oct 6, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@tosuke tosuke force-pushed the podman-cpu-precision branch from 21ebab3 to 0af750b Compare October 6, 2024 12:34
@tosuke tosuke marked this pull request as ready for review October 6, 2024 12:47
@tosuke tosuke requested a review from a team as a code owner October 6, 2024 12:47
@tosuke tosuke requested a review from andrzej-stencel October 6, 2024 12:47
Copy link
Contributor

@rogercoll rogercoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code lgtm

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Nov 12, 2024
@tosuke
Copy link
Author

tosuke commented Nov 25, 2024

Any updates?

@github-actions github-actions bot removed the Stale label Nov 25, 2024
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Dec 10, 2024
@rogercoll
Copy link
Contributor

@open-telemetry/collector-contrib-approvers any feedback on this PR? Thanks!

@github-actions github-actions bot removed the Stale label Dec 11, 2024
@TylerHelmuth TylerHelmuth added the ready to merge Code review completed; ready to merge by maintainers label Dec 16, 2024
@TylerHelmuth TylerHelmuth reopened this Dec 20, 2024
@TylerHelmuth
Copy link
Member

Needs the latest from main

@TylerHelmuth TylerHelmuth removed the ready to merge Code review completed; ready to merge by maintainers label Dec 20, 2024
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.

6 participants