-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Docker memory usage include cache, so is misleading #4375
Comments
Our code is based on the docker cli code, and we want the behavior be the same as upstream. I quickly looked at our code and it appears very similar to docker/cli#80 , Can you clarify which field is off? telegraf/plugins/inputs/docker/docker.go Lines 533 to 535 in c389a68
|
In docker cli they replaced memory by mem usage without cache. In telegraf we compute only mem usage without cache for mem percent computing (see https://github.com/docker/cli/pull/80/files ) |
Docker plugin get memory usage which include cache. So after some hours, reported memory usage is totaly wrong.
I check code I see you compute memory usage without cache but is not reported to any metrics
telegraf/plugins/inputs/docker/docker.go
Line 533 in c5fa672
Could we replace docker memory usage by a better memory usage or to add new metric like use_nocache ?
See also:
The text was updated successfully, but these errors were encountered: