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

Support gauge/counter distinction in Linux observer #1242

Merged
merged 10 commits into from
Feb 14, 2025

Conversation

blt
Copy link
Collaborator

@blt blt commented Feb 13, 2025

What does this PR do?

This commit adjusts our Linux observer to record counter data from cgroup v2 as counters. We have found that some of our CPU data does not chart properly because it is recorded in lading as gauges.

REF SMPTNG-608

Copy link
Collaborator Author

blt commented Feb 13, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

@scottopell scottopell left a comment

Choose a reason for hiding this comment

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

shaping up nicely

lading/src/observer/linux/cgroup/v2.rs Show resolved Hide resolved
lading/src/observer/linux/cgroup/v2.rs Outdated Show resolved Hide resolved
lading/src/observer/linux/cgroup/v2.rs Show resolved Hide resolved
lading/src/observer/linux/cgroup/v2.rs Outdated Show resolved Hide resolved
lading/Cargo.toml Show resolved Hide resolved
blt and others added 8 commits February 13, 2025 13:42
This commit adjusts how the Linux cgroup v2 observer works,
allowing for values that are known to be counters to be
recorded as counters. Or, this is a first pass anyhow. The
CPU data is the motivating factor here and this commit
so far is memory focused.

Signed-off-by: Brian L. Troutwine <[email protected]>
Signed-off-by: Brian L. Troutwine <[email protected]>
Signed-off-by: Brian L. Troutwine <[email protected]>
Signed-off-by: Brian L. Troutwine <[email protected]>
Signed-off-by: Brian L. Troutwine <[email protected]>
Signed-off-by: Brian L. Troutwine <[email protected]>
Signed-off-by: Brian L. Troutwine <[email protected]>
@blt blt force-pushed the blt/support_gauge_counter_distinction_in_linux_observer branch from 2e5c644 to e1c7fe4 Compare February 13, 2025 21:43
blt added 2 commits February 13, 2025 13:54
Signed-off-by: Brian L. Troutwine <[email protected]>
Signed-off-by: Brian L. Troutwine <[email protected]>
@blt blt marked this pull request as ready for review February 14, 2025 02:21
@blt blt requested a review from a team as a code owner February 14, 2025 02:21
Copy link
Contributor

@scottopell scottopell left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for emphasis on useful logging, should help us narrow in on any incorrect assumptions made here.

@blt blt merged commit dd4d314 into main Feb 14, 2025
17 checks passed
@blt blt deleted the blt/support_gauge_counter_distinction_in_linux_observer branch February 14, 2025 21:48
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