You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add metrics for total_active_file and total_inactive_file memory
The goal of this PR is to have additional cAdvisor metrics which
expose total_active_file and total_inactive_file.
Today working_set_bytes subtracts total_inactive_file in its calculation,
but there are situations where exposing these metrics directly is valuable.
For example, two containers sharing files in an emptyDir increases total_active_file over time. This is not tracked in the working_set memory.
Exposing total_active_file and total_inactive_file to the user
allows them to subtract out total_active_file or total_inactive_file
if they so choose in their alerts.
In the case of prometheus with a thanos sidecar, working_set can give
a false sense of high memory usage. The kernel counts thanos reading prometheus written files as "active_file" memory.
In that situation, a user may want to exclude active_file from their ContainerLowOnMemory alert.
Relates to: kubernetes/kubernetes#43916
0 commit comments