Skip to content

Conversation

@dcantah
Copy link
Contributor

@dcantah dcantah commented Jan 9, 2026

It's possible a user doesn't want the full stats list, and only wants cpu/mem etc. This plumbs through the ability to filter to only what is requested. This, while we're already here, adds in memory.event output to the stats list. For that specifically, I think eventually we may want a streaming variant of this so you can get alerted of changes in the file immediately instead of polling/one off reads, but this is useful for now.

@dcantah
Copy link
Contributor Author

dcantah commented Jan 11, 2026

Ok, I changed my mind. I think the events should just come along the ride in the statistics call we already have. However, I think we should allow filtering what stats a user actually wants in the call too. I'll change this pr

@dcantah dcantah marked this pull request as draft January 11, 2026 20:42
It's possible a user doesn't want the full stats list,
and only wants cpu/mem etc. This plumbs through the
ability to filter to only what is requested. This, while
we're already here, adds in memory.event output to the
stats list. For that specifically, I think eventually we
may want a streaming variant of this so you can get alerted
of changes in the file immediately instead of polling/one
off reads, but this is useful for now.
@dcantah dcantah changed the title Expose cgroup memory events to core types Allow filtering container statistics Jan 12, 2026
@dcantah dcantah marked this pull request as ready for review January 12, 2026 20:04
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