diff options
author | Anartz Nuin <anartzn@speechmatics.com> | 2020-07-21 12:06:52 +0100 |
---|---|---|
committer | Anartz Nuin <anartzn@speechmatics.com> | 2020-07-21 12:06:52 +0100 |
commit | d0739342f635b51d448572b74da7051a799dc22b (patch) | |
tree | 2a3b28a852ab2585e3f84e8996e5ed3d810f71ea | |
parent | 9f8a812081dc30ed17b387f9b47740cfd4272e99 (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.py | 5 |
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'] |