Skip to content

Conversation

@klihub
Copy link
Collaborator

@klihub klihub commented Nov 13, 2025

nri_policy_mem_node_capacity was never set due to an thinko in how things got set up in newSystemCollector() vs. SystemCollector.Update(). As a side effect memory node capacity was never exported among our metrics. This PR fixes that.

nri_policy_mem_node_capacity was never set due to an thinko in
newSystemCollector() vs. SystemCollector.Update(). As a side
effect memory node capacity was never exported among our metrics.
Fix this now.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
@klihub klihub changed the title policy: fix missing mem_node_capacity metrics data.nri_policy_mem_node_ussage metrics never being set. policy: fix missing mem_node_capacity metrics data. Nov 13, 2025
Copy link
Collaborator

@askervin askervin left a comment

Choose a reason for hiding this comment

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

LGTM.

Update() looks something to revisit in case of hot-plug, whether it is a new node or changed capacity. But that'll be later.

@askervin askervin merged commit d5fd48d into containers:main Nov 14, 2025
9 checks passed
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