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

Reduce NPD full config #520

Merged
merged 2 commits into from
Jan 6, 2025
Merged

Reduce NPD full config #520

merged 2 commits into from
Jan 6, 2025

Conversation

jessieqliu
Copy link
Contributor

@jessieqliu jessieqliu commented Dec 28, 2024

Based on security review recommendations, we should be conservative about which metrics we enable in NPD. This reduces the full list of supported metrics to a smaller one.

@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu jessieqliu requested a review from jkl73 December 30, 2024 22:13
Copy link
Contributor

@alexmwu alexmwu left a comment

Choose a reason for hiding this comment

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

Should we change the config from "all" then? What if we want to enable the default, full NPD list in the future?

Comment on lines 68 to 76
"disk/avg_queue_len": {"disk/avg_queue_len"},
"disk/bytes_used": {"disk/bytes_used"},
"disk/percent_used": {"disk/percent_used"},
"disk/io_time": {"disk/io_time"},
"disk/merged_operation_count": {"disk/merged_operation_count"},
"disk/operation_bytes_count": {"disk/operation_bytes_count"},
"disk/operation_count": {"disk/operation_count"},
"disk/operation_time": {"disk/operation_time"},
"disk/weighted_io": {"disk/weighted_io"},
Copy link
Contributor

Choose a reason for hiding this comment

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

All of these seem useful for disk bound workloads.

Comment on lines -83 to -88
"memory/anonymous_used": {"memory/anonymous_used"},
"memory/bytes_used": {"memory/bytes_used"},
"memory/dirty_used": {"memory/dirty_used"},
"memory/page_cache_used": {"memory/page_cache_used"},
"memory/unevictable_used": {"memory/unevictable_used"},
"memory/percent_used": {"memory/percent_used"},
Copy link
Contributor

Choose a reason for hiding this comment

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

These also seem useful, except perhaps unevictable?

@jessieqliu
Copy link
Contributor Author

Should we change the config from "all" then? What if we want to enable the default, full NPD list in the future?

My intention was for the "all" term to describe the full set of metrics that CS supports, not necessarily everything supported by NPD. So if in the future we add support for more metrics, the definition would naturally change with it (and we would clearly document this change for the new image). IMO creating a dedicated label for this specific set of metrics going forward is harder to maintain, and it's difficult to think of an appropriate name since it's just what we think is useful at the moment. We could change it to something like "all-supported" for more clarity/flexibility, though. WDYT?

@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu jessieqliu merged commit b249b7f into main Jan 6, 2025
13 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.

None yet

3 participants