summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnartz Nuin <anartzn@speechmatics.com>2020-07-21 12:06:52 +0100
committerAnartz Nuin <anartzn@speechmatics.com>2020-07-21 12:06:52 +0100
commitd0739342f635b51d448572b74da7051a799dc22b (patch)
tree2a3b28a852ab2585e3f84e8996e5ed3d810f71ea
parent9f8a812081dc30ed17b387f9b47740cfd4272e99 (diff)
Bring back 'rss' and 'cache' memory stats in docker plugin
Looks like the stats were removed because they where gone in Docker 1.11. This change put them back since they've been available again for a while now.
-rw-r--r--glances/plugins/glances_docker.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/glances/plugins/glances_docker.py b/glances/plugins/glances_docker.py
index eaac481c..80c550df 100644
--- a/glances/plugins/glances_docker.py
+++ b/glances/plugins/glances_docker.py
@@ -319,9 +319,8 @@ class Plugin(GlancesPlugin):
ret = {}
# Read the stats
try:
- # Do not exist anymore with Docker 1.11 (issue #848)
- # ret['rss'] = all_stats['memory_stats']['stats']['rss']
- # ret['cache'] = all_stats['memory_stats']['stats']['cache']
+ ret['rss'] = all_stats['memory_stats']['stats']['rss']
+ ret['cache'] = all_stats['memory_stats']['stats']['cache']
ret['usage'] = all_stats['memory_stats']['usage']
ret['limit'] = all_stats['memory_stats']['limit']
ret['max_usage'] = all_stats['memory_stats']['max_usage']