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

Remove procfs CPU percentage #1141

Merged
merged 2 commits into from
Dec 11, 2024
Merged

Remove procfs CPU percentage #1141

merged 2 commits into from
Dec 11, 2024

Conversation

blt
Copy link
Collaborator

@blt blt commented Dec 11, 2024

What does this PR do?

This commit adjusts the CPU percentages that make it to the captures
to be founded on cgroup data. This commit primarily removes code as
a result.

Related issues

Resolves SMPTNG-385
REF SMPTNG-109

@blt blt mentioned this pull request Dec 11, 2024
@blt blt marked this pull request as ready for review December 11, 2024 02:12
@blt blt requested a review from a team as a code owner December 11, 2024 02:12
@blt blt force-pushed the blt/read_cpu_percentage_from_cgroup_data branch 2 times, most recently from c6d0771 to 4a8ac54 Compare December 11, 2024 02:29
@blt blt force-pushed the blt/remove_procfs_cpu_percentage branch from d8f31f4 to de4a638 Compare December 11, 2024 02:30
@@ -91,16 +91,9 @@ pub(crate) async fn poll(group_prefix: &Path, labels: &[(String, String)]) -> Re
let user_cpu = (delta_user as f64 / delta_time) / allowed_cores * 100.0;
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a warning above that's cropping up from somewhere in this stack.

@blt blt force-pushed the blt/read_cpu_percentage_from_cgroup_data branch from 4a8ac54 to b5b4062 Compare December 11, 2024 19:55
@blt blt force-pushed the blt/remove_procfs_cpu_percentage branch 2 times, most recently from 2ba3a8d to 8465ba7 Compare December 11, 2024 20:24
@blt blt changed the base branch from blt/read_cpu_percentage_from_cgroup_data to graphite-base/1141 December 11, 2024 21:00
This commit adjusts the CPU percentages that make it to the captures
to be founded on cgroup data. This commit primarily removes code as
a result.

REF SMPTNG-385

Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
@blt blt force-pushed the graphite-base/1141 branch from 4b426fc to 13f4115 Compare December 11, 2024 21:01
@blt blt force-pushed the blt/remove_procfs_cpu_percentage branch from 8465ba7 to 0caea85 Compare December 11, 2024 21:01
@blt blt changed the base branch from graphite-base/1141 to main December 11, 2024 21:01
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
@blt blt force-pushed the blt/remove_procfs_cpu_percentage branch from 0caea85 to 01a08bb Compare December 11, 2024 21:01
@blt blt merged commit e69491a into main Dec 11, 2024
18 checks passed
Copy link
Collaborator Author

blt commented Dec 11, 2024

Merge activity

  • Dec 11, 4:32 PM EST: A user merged this pull request with Graphite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants