Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container memory stats not displayed #3142

Open
upbeat-eggplant opened this issue Apr 7, 2025 · 1 comment
Open

Container memory stats not displayed #3142

upbeat-eggplant opened this issue Apr 7, 2025 · 1 comment

Comments

@upbeat-eggplant
Copy link

upbeat-eggplant commented Apr 7, 2025

Describe the bug

Memory statistics are not displayed for docker containers. The statistics are neither displayed in the web interface nor exported to influx when using the appropriate option. All other stats seem to work fine. Any help would be appreciated. Thank you in advance!

Maybe I've just missed some option to set? But I think not.

I am running glances in a docker container on Raspberry Pi 4 Model B Rev 1.1.

I have tried different versions of the docker image and also tried to run glances on a different Pi with Debian 11.

Expected behavior

  • For each docker container the amount of used memory should be shown in the web interface or exported to influx db, if applicable.

Screenshots

Image

Environement (please complete the following information)

  • Debian GNU/Linux 12 (bookworm) / RaspberryPi OS 64bit
  • Glances version: 4.3.1 / Glances API version: 4 / PsUtil version: 7.0.0
  • How do you install Glances: Docker compose (see compose file attached) nicolargo/glances:latest-full
Glances Test

===============================================================================
Glances 4.3.1 (/app/glances/__init__.py)
Python 3.12.9 (/venv/bin/python3)
PsUtil 7.0.0 (/venv/lib/python3.12/site-packages/psutil/__init__.py)
===============================================================================
alert         [OK]    0.00003s
[]
amps          [OK]    0.00027s key=name
[{'count': 0,
  'countmax': None,
  'countmin': 1.0,
  'key': 'name',
  'name': 'Dropbox',
  'refresh': 3.0,
  'regex': True,
  'result': None,
  'timer': 2.842046022415161}, ...]
cloud         [NA]
connections   [NA]
containers    [OK]    0.26680s key=name
[{'command': '/sbin/docker-entrypoint.sh /usr/local/bin/paperless_cmd.sh',
  'cpu_percent': 6.407713004484306,
  'created': '2025-04-06T16:01:53.964191739Z',
  'engine': 'docker',
  'id': '50ba28ec4dd5e875976a9cdd5251451c6b562e8b5428a90de53403bb3cd8239a',
  'image': ('ghcr.io/paperless-ngx/paperless-ngx:latest',),
  'io_rx': None,
  'io_wx': None,
  'key': 'name',
  'memory_percent': None,
  'memory_usage': None,
  'name': 'paperless-webserver-1',
  'network_rx': None,
  'network_tx': None,
  'status': 'running',
  'uptime': '16 hours'}, ...]
core          [OK]    0.00121s
{'log': 4, 'phys': 4}
cpu           [OK]    0.00195s
{'cpucore': 4,
 'ctx_switches': 0,
 'ctx_switches_gauge': 14857515,
 'guest': 0.0,
 'idle': 90.1,
 'interrupts': 0,
 'interrupts_gauge': 7351882,
 'iowait': 0.1,
 'irq': 0.0,
 'nice': 0.0,
 'soft_interrupts': 0,
 'soft_interrupts_gauge': 2042335,
 'steal': 0.0,
 'syscalls': 0,
 'syscalls_gauge': 0,
 'system': 2.6,
 'time_since_update': 2.288698196411133,
 'total': 9.7,
 'user': 7.2}
diskio        [OK]    0.00411s key=disk_name
[{'disk_name': 'mmcblk0',
  'key': 'disk_name',
  'read_bytes': 0,
  'read_bytes_gauge': 1697899520,
  'read_count': 0,
  'read_count_gauge': 42541,
  'time_since_update': 3.0599684715270996,
  'write_bytes': 0,
  'write_bytes_gauge': 1301787648,
  'write_count': 0,
  'write_count_gauge': 28788}, ...]
folders       [OK]    0.00029s
[]
fs            [OK]    0.00244s key=mnt_point
[{'device_name': '/dev/vg_server/root_filesystem',
  'free': 3018006528,
  'fs_type': 'ext4',
  'key': 'mnt_point',
  'mnt_point': '/usr/lib/os-release',
  'percent': 81.0,
  'size': 16729894912,
  'used': 12836118528}, ...]
gpu           [OK]    0.00014s
[]
help          [OK]    0.00001s
None
ip            [OK]    0.00932s
{'address': '***', 'mask': '***', 'mask_cidr': '***', 'public_address': '***', 'public_info_human': '***'}
irq           [NA]
load          [OK]    0.00010s
{'cpucore': 4, 'min1': 0.32568359375, 'min15': 0.580078125, 'min5': 0.5947265625}
mem           [OK]    0.00046s
{'active': 392077312,
 'available': 2058559488,
 'buffers': 43200512,
 'cached': 2016378880,
 'free': 2058559488,
 'inactive': 3126517760,
 'percent': 48.2,
 'shared': 35225600,
 'total': 3975548928,
 'used': 1916989440}
memswap       [OK]    0.00053s
{'free': 536866816,
 'percent': 0.0,
 'sin': 0,
 'sout': 0,
 'time_since_update': 2.314796209335327,
 'total': 536866816,
 'used': 0}
network       [OK]    0.00198s key=interface_name
[{'alias': None,
  'bytes_all': 0,
  'bytes_all_gauge': 4156,
  'bytes_all_rate_per_sec': 0.0,
  'bytes_recv': 0,
  'bytes_recv_gauge': 2078,
  'bytes_recv_rate_per_sec': 0.0,
  'bytes_sent': 0,
  'bytes_sent_gauge': 2078,
  'bytes_sent_rate_per_sec': 0.0,
  'interface_name': 'lo',
  'key': 'interface_name',
  'speed': 0,
  'time_since_update': 2.31095290184021}, ...]
now           [OK]    0.00028s
{'custom': '2025-04-07 12:33:46 UTC', 'iso': '2025-04-07T12:33:46+00:00'}
percpu        [OK]    0.00108s key=cpu_number
[{'cpu_number': 0,
  'dpc': None,
  'guest': 0.0,
  'guest_nice': 0.0,
  'idle': 89.3,
  'interrupt': None,
  'iowait': 0.0,
  'irq': 0.0,
  'key': 'cpu_number',
  'nice': 0.0,
  'softirq': 0.0,
  'steal': 0.0,
  'system': 3.6,
  'total': 10.7,
  'user': 7.2}, ...]
ports         [OK]    0.00002s
[]
processcount  [OK]    0.29758s
{'pid_max': 0, 'running': 1, 'sleeping': 169, 'thread': 820, 'total': 274}
processlist   [OK]    0.00075s
[]
programlist   [OK]    0.00637s
[]
psutilversion [OK]    0.00016s
'7.0.0'
quicklook     [OK]    0.00140s
{'cpu': 9.7,
 'cpu_hz': 1500000000.0,
 'cpu_hz_current': 1500000000.0,
 'cpu_log_core': 4,
 'cpu_name': 'Raspberry Pi 4 Model B Rev 1.1',
 'cpu_phys_core': 4,
 'load': 14.5,
 'mem': 48.2,
 'percpu': [{...}, {...}, {...}, {...}],
 'swap': 0.0}
raid          [NA]
sensors       [OK]    0.00002s key=label
[{'critical': None,
  'key': 'label',
  'label': 'cpu_thermal 0',
  'type': 'temperature_core',
  'unit': 'C',
  'value': 47,
  'warning': None}, ...]
smart         [NA]
system        [OK]    0.00003s
{'hostname': 'rpi-server-glances',
 'hr_name': 'Debian GNU/Linux 12 64bit / Linux 6.12.20+rpt-rpi-v8',
 'linux_distro': 'Debian GNU/Linux 12',
 'os_name': 'Linux',
 'os_version': '6.12.20+rpt-rpi-v8',
 'platform': '64bit'}
uptime        [OK]    0.00049s
{'seconds': 2934}
version       [OK]    0.00010s
'4.3.1'
vms           [NA]
wifi          [OK]    0.00057s
[]
===============================================================================
Total time to update all stats: 0.62192s
===============================================================================

Additional context

glances.conf.txt
compose.yml.txt

@nicolargo
Copy link
Owner

Hi @upbeat-eggplant

Perhaps related to #2573
Have a look on docker/for-linux#1112 (comment) for a workaround on ARM64 computer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants