mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 14:12:21 +03:00
glances_plugin.py has a problem with specific docker output #1160
This commit is contained in:
parent
1e2abf713a
commit
bec52c9722
1
NEWS
1
NEWS
@ -12,6 +12,7 @@ Enhancements and new features:
|
||||
Bugs corrected:
|
||||
|
||||
* Failed to connect to bus: No such file or directory #1156
|
||||
* glances_plugin.py has a problem with specific docker output #1160
|
||||
|
||||
Backward-incompatible changes:
|
||||
|
||||
|
@ -376,7 +376,7 @@ class Plugin(GlancesPlugin):
|
||||
iow = [i for i in iocounters['io_service_bytes_recursive'] if i['op'] == 'Write'][0]['value']
|
||||
ior_old = [i for i in self.iocounters_old[container_id]['io_service_bytes_recursive'] if i['op'] == 'Read'][0]['value']
|
||||
iow_old = [i for i in self.iocounters_old[container_id]['io_service_bytes_recursive'] if i['op'] == 'Write'][0]['value']
|
||||
except (IndexError, KeyError, TypeError) as e:
|
||||
except (TypeError, IndexError, KeyError) as e:
|
||||
# all_stats do not have io information
|
||||
logger.debug("docker plugin - Cannot grab block IO usage for container {} ({})".format(container_id, e))
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user