Fedora 43

Podman : Display Container resource usage2025/11/12

 

You can check percentage of CPU, memory, network I/O for Containers.

[1] Check the resource usage of each container.
# display usage statistics with streaming

[root@dlp ~]#
podman stats

ID            NAME                     CPU %       MEM USAGE / LIMIT  MEM %       NET IO          BLOCK IO      PIDS        CPU TIME    AVG CPU %
5ee24d5a8595  6c304dce5f16-service     0.00%       249.9kB / 16.75GB  0.00%       0B / 0B         0B / 0B       1           3.341ms     0.00%
bf2c63bbe2ca  523002707be7-infra       0.00%       254kB / 16.75GB    0.00%       2.188kB / 838B  0B / 0B       1           3.229ms     0.00%
3cea800159bb  nginx-pod-pod-nginx-pod  0.03%       8.413MB / 16.75GB  0.05%       2.188kB / 838B  0B / 4.096kB  9           20.848ms    0.03%

# display without streaming

[root@dlp ~]#
podman stats --no-stream

ID            NAME                     CPU %       MEM USAGE / LIMIT  MEM %       NET IO          BLOCK IO      PIDS        CPU TIME    AVG CPU %
5ee24d5a8595  6c304dce5f16-service     0.00%       249.9kB / 16.75GB  0.00%       0B / 0B         0B / 0B       1           3.341ms     0.00%
bf2c63bbe2ca  523002707be7-infra       0.00%       254kB / 16.75GB    0.00%       2.188kB / 838B  0B / 0B       1           3.229ms     0.00%
3cea800159bb  nginx-pod-pod-nginx-pod  0.02%       8.413MB / 16.75GB  0.05%       2.188kB / 838B  0B / 4.096kB  9           20.848ms    0.02%

# display for a specific container

[root@dlp ~]#
podman stats 3cea800159bb --no-stream

ID            NAME                     CPU %       MEM USAGE / LIMIT  MEM %       NET IO          BLOCK IO      PIDS        CPU TIME    AVG CPU %
3cea800159bb  nginx-pod-pod-nginx-pod  0.02%       8.413MB / 16.75GB  0.05%       2.188kB / 838B  0B / 4.096kB  9           20.848ms    0.02%

# specify time interval for streaming display (sec)
# * default --interval is 5 sec

[root@dlp ~]#
podman stats 3cea800159bb --interval 10

ID            NAME                     CPU %       MEM USAGE / LIMIT  MEM %       NET IO          BLOCK IO      PIDS        CPU TIME    AVG CPU %
3cea800159bb  nginx-pod-pod-nginx-pod  0.01%       8.413MB / 16.75GB  0.05%       2.328kB / 838B  0B / 4.096kB  9           20.848ms    0.01%

# display with specific format

[root@dlp ~]#
podman stats --no-stream --format "table {{.ID}} {{.CPUPerc}} {{.MemPerc}}"

ID            CPU %       MEM %
5ee24d5a8595  0.00%       0.00%
bf2c63bbe2ca  0.00%       0.00%
3cea800159bb  0.01%       0.05%
Matched Content