Describe the bug
Glances displays an invalid data (just an underscore or 0b) for MEM, I/O and Network stats for docker containers.
To Reproduce
Using this docker run command:
docker run -d --name glances \
--restart unless-stopped \
--net host \
--pid host \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
nicolargo/glances:3.2.1-full
Expected behavior
MEM, I/O and Network stats for docker containers should display a valid value.
Screenshots
Desktop (please complete the following information):
- OS: Debian GNU/Linux 10 32bit (Raspberry Pi OS Lite)
- Glances Version: Glances v3.2.1 with PsUtil v5.8.0
- Glances logs file:
2021-08-11 16:03:42,334 -- INFO -- Start Glances 3.2.1
2021-08-11 16:03:42,335 -- INFO -- CPython 3.9.6 and psutil 5.8.0 detected
2021-08-11 16:03:42,524 -- INFO -- Start GlancesWebServer mode
2021-08-11 16:03:43,416 -- WARNING -- Wifi lib is not compliant with Python 3, Wifi plugin is disabled
2021-08-11 16:03:44,551 -- INFO -- Glances RESTful API Server started on http://0.0.0.0:61208/api/3/
2021-08-11 16:03:44,575 -- INFO -- Glances Web User Interface started on http://0.0.0.0:61208/
2021-08-11 16:07:05,283 -- INFO -- Start Glances 3.2.1
2021-08-11 16:07:05,284 -- INFO -- CPython 3.9.6 and psutil 5.8.0 detected
=========================================================
Glances version 3.2.1 with PsUtil 5.8.0
=========================================================
alert [OK] 0.00005s []
amps [OK] 0.00005s []
cloud [OK] 0.00005s {}
connections [OK] 0.00005s {'LISTEN': 2, 'ESTABLISHED': 0, 'SYN_SENT': 1, 'SYN_RECV': 0, 'initiated': 1, '
core [OK] 0.00171s {'phys': 4, 'log': 4}
cpu [OK] 0.00005s {'total': 42.1, 'user': 34.3, 'nice': 0.0, 'system': 7.3, 'idle': 58.4, 'iowait
diskio [OK] 0.00004s key=disk_name [{'time_since_update': 1, 'disk_name': 'loop0', 'read_count': 0,
docker [OK] 0.00134s key=name [{'key': 'name', 'name': 'glances', 'Names': ['glances'], 'Id': '17469
folders [OK] 0.00005s []
fs [OK] 0.00004s key=mnt_point [{'device_name': '/dev/root', 'fs_type': 'ext4', 'mnt_point': '/e
gpu [OK] 0.00005s []
help [OK] 0.00003s None
ip [OK] 0.00004s {'address': '172.18.0.4', 'mask': '255.255.0.0', 'mask_cidr': 16, 'gateway': '1
irq [OK] 0.00004s key=irq_line [{'irq_line': '50_3f00b880.mailbox', 'irq_rate': 0, 'key': 'irq_li
load [OK] 0.00004s {'min1': 1.02, 'min5': 0.78, 'min15': 0.76, 'cpucore': 4}
mem [OK] 0.00004s {'total': 1013784576, 'available': 649089024, 'percent': 36.0, 'used': 36469555
memswap [OK] 0.00004s {'total': 1153413120, 'used': 111935488, 'free': 1041477632, 'percent': 9.7, 's
network [OK] 0.00172s key=interface_name [{'interface_name': 'lo', 'alias': None, 'time_since_update'
now [OK] 0.00007s 2021-08-11 16:08:24 UTC
percpu [OK] 0.00005s key=cpu_number [{'key': 'cpu_number', 'cpu_number': 0, 'total': 8.7, 'user': 6.
ports [OK] 0.00006s []
processcount [OK] 0.00004s {'total': 144, 'running': 1, 'sleeping': 94, 'thread': 422, 'pid_max': 0}
processlist [OK] 0.00014s [{'cpu_percent': 0.0, 'ppid': 1, 'io_counters': [0, 0, 0, 0, 0], 'username': 'r
psutilversion [OK] 0.00009s (5, 8, 0)
quicklook [OK] 0.00013s {'cpu': 42.1, 'percpu': [{'key': 'cpu_number', 'cpu_number': 0, 'total': 8.7, '
raid [OK] 0.00008s {}
sensors [OK] 0.00007s key=label [{'label': 'cpu_thermal 1', 'value': 67, 'warning': None, 'critical':
smart [OK] 0.00011s []
system [OK] 0.00006s {'os_name': 'Linux', 'hostname': '17469b41e8eb', 'platform': '32bit', 'linux_di
uptime [OK] 0.00021s {'seconds': 348108}
wifi [OK] 0.00021s []
Additional context
Glances is ran dockerised as-is, no additional config was included.
needs more info needs discussion