From d0739342f635b51d448572b74da7051a799dc22b Mon Sep 17 00:00:00 2001 From: Anartz Nuin Date: Tue, 21 Jul 2020 12:06:52 +0100 Subject: 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. --- glances/plugins/glances_docker.py | 5 ++--- 1 file 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'] -- cgit v1.2.3