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

metrics: fix collecting hugetlb statistics from cgroup v1 #968

Merged
merged 1 commit into from Feb 20, 2023

Conversation

askervin
Copy link
Contributor

  • Hugetlb statistics collector matched both usage and (later added) reservation accounting files (.rsvd.). When both were present, the collector tried to create duplicate metrics entries: usage and reservation values got the same name and labels.
  • This patch ignores .rsvd. files when collecting statistics in order to keep reporting exactly what was reported before them.
  • Fixes error "cgroup_hugetlb_usage... collected before with the same name and label values" error in cri-resmgr output.
  • Fixes issue curl metrics issue #859.

- Hugetlb statistics collector matched both usage and (later added)
  reservation accounting files (*.rsvd.*). When both were present, the
  collector tried to create duplicate metrics entries: usage and
  reservation values got the same name and labels.
- This patch ignores *.rsvd.* files when collecting statistics
  in order to keep reporting exactly what was reported before them.
- Fixes error "cgroup_hugetlb_usage... collected before with the same
  name and label values" error in cri-resmgr output.
- Fixes issue intel#859.
@codecov-commenter
Copy link

Codecov Report

Merging #968 (b9e381c) into master (7d464f9) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #968      +/-   ##
==========================================
- Coverage   33.68%   33.67%   -0.01%     
==========================================
  Files          61       61              
  Lines        9156     9158       +2     
==========================================
  Hits         3084     3084              
- Misses       5789     5791       +2     
  Partials      283      283              
Impacted Files Coverage Δ
pkg/cgroups/cgroupstats.go 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@marquiz
Copy link
Contributor

marquiz commented Dec 23, 2022

lgtm

Copy link
Contributor

@klihub klihub left a comment

Choose a reason for hiding this comment

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

LGTM

@klihub klihub merged commit 5db1e8a into intel:master Feb 20, 2023
@marquiz marquiz mentioned this pull request Jan 8, 2024
18 tasks
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.

None yet

5 participants