Skip to content

ASSETS-12635: Add cgroupV2 support#59

Open
nwoodard-cs wants to merge 1 commit intomasterfrom
ASSETS-12635
Open

ASSETS-12635: Add cgroupV2 support#59
nwoodard-cs wants to merge 1 commit intomasterfrom
ASSETS-12635

Conversation

@nwoodard-cs
Copy link

@nwoodard-cs nwoodard-cs commented Aug 27, 2025

Description

Add support for reading metrics from cgroupv2 (the new Ethos default), with automatic fallback to cgroupv1.

Similar change was made at adobe/asset-compute-pipeline#98

Related Issue

Partial fix for https://jira.corp.adobe.com/browse/ASSETS-12635

Motivation and Context

Ethos containers are using cgroupv2 by default, which node-cgroup-metrics does not currently support.

How Has This Been Tested?

Tests have been added in metrics.test.js
Manual tests have been performed by using nui app deploy.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@nwoodard-cs nwoodard-cs marked this pull request as ready for review October 7, 2025 16:24
'memory/memory.limit_in_bytes': 'memory.max',
'cpuacct/cpuacct.usage': 'cpu.stat',
'cpuacct/cpuacct.stat': 'cpu.stat'
};

Choose a reason for hiding this comment

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

nit: since these are hardcoded, should we modify the readme on the procedure to add more metrics if needed in the future?

Copy link

@dconnelly84 dconnelly84 left a comment

Choose a reason for hiding this comment

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

LGTM

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