Skip to content

fix(cgroups): support cgroup v2 path matching on EL9#283

Open
Asserzayed wants to merge 1 commit into
ubccr:mainfrom
Asserzayed:main
Open

fix(cgroups): support cgroup v2 path matching on EL9#283
Asserzayed wants to merge 1 commit into
ubccr:mainfrom
Asserzayed:main

Conversation

@Asserzayed
Copy link
Copy Markdown

Summary

On Enterprise Linux 9 (EL9) the system uses cgroups v2, and the supremm was only matching cgroups v1 paths. This caused cgroup memory-related graphs on XDMoD to be missing while they are scraped successfully with valid data samples. This PR adds support for the cgroups v2 path layout and detection so the supremm correctly matches against correct cgroups data index and reports memory metrics on EL9.

What I changed

  • Added detection for cgroups v2 and extraction of the v2 cgroup path.
  • Modified the cgroup path matching logic so it tries to regex match with:
    1- explicit v1 path match.
    2- explicit v2 path match.
    3- fall back to anywhere /job_<job_id> path appears.

Signed-off-by: Asserzayed <asserzayed@gmail.com>
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.

1 participant