github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/docs/source/markdown/podman-stats.1.md (about) 1 % podman-stats(1) 2 3 ## NAME 4 podman\-stats - Display a live stream of one or more container's resource usage statistics 5 6 ## SYNOPSIS 7 **podman stats** [*options*] [*container*] 8 9 **podman container stats** [*options*] [*container*] 10 11 ## DESCRIPTION 12 Display a live stream of one or more containers' resource usage statistics 13 14 Note: Podman stats will not work in rootless environments that use CGroups V1. 15 Podman stats relies on CGroup information for statistics, and CGroup v1 is not 16 supported for rootless use cases. 17 18 Note: Rootless environments that use CGroups V2 are not able to report statistics 19 about their networking usage. 20 21 ## OPTIONS 22 23 #### **--all**, **-a** 24 25 Show all containers. Only running containers are shown by default 26 27 #### **--latest**, **-l** 28 29 Instead of providing the container name or ID, use the last created container. If you use methods other than Podman 30 to run containers such as CRI-O, the last started container could be from either of those methods. 31 32 The latest option is not supported on the remote client. 33 34 #### **--no-reset** 35 36 Do not clear the terminal/screen in between reporting intervals 37 38 #### **--no-stream** 39 40 Disable streaming stats and only pull the first result, default setting is false 41 42 #### **--format**=*template* 43 44 Pretty-print container statistics to JSON or using a Go template 45 46 Valid placeholders for the Go template are listed below: 47 48 | **Placeholder** | **Description** | 49 | --------------- | --------------- | 50 | .ID | Container ID | 51 | .Name | Container Name | 52 | .CPUPerc | CPU percentage | 53 | .MemUsage | Memory usage | 54 | .MemPerc | Memory percentage | 55 | .NetIO | Network IO | 56 | .BlockIO | Block IO | 57 | .PIDS | Number of PIDs | 58 59 When using a GO template, you may precede the format with `table` to print headers. 60 61 ## EXAMPLE 62 63 ``` 64 # podman stats -a --no-stream 65 ID NAME CPU % MEM USAGE / LIMIT MEM % NET IO BLOCK IO PIDS 66 a9f807ffaacd frosty_hodgkin -- 3.092MB / 16.7GB 0.02% -- / -- -- / -- 2 67 3b33001239ee sleepy_stallman -- -- / -- -- -- / -- -- / -- -- 68 ``` 69 70 ``` 71 # podman stats --no-stream a9f80 72 ID NAME CPU % MEM USAGE / LIMIT MEM % NET IO BLOCK IO PIDS 73 a9f807ffaacd frosty_hodgkin -- 3.092MB / 16.7GB 0.02% -- / -- -- / -- 2 74 ``` 75 76 ``` 77 # podman stats --no-stream --format=json a9f80 78 [ 79 { 80 "id": "a9f807ffaacd", 81 "name": "frosty_hodgkin", 82 "cpu_percent": "--", 83 "mem_usage": "3.092MB / 16.7GB", 84 "mem_percent": "0.02%", 85 "netio": "-- / --", 86 "blocki": "-- / --", 87 "pids": "2" 88 } 89 ] 90 ``` 91 92 ``` 93 # podman stats --no-stream --format "table {{.ID}} {{.Name}} {{.MemUsage}}" 6eae 94 ID NAME MEM USAGE / LIMIT 95 6eae9e25a564 clever_bassi 3.031MB / 16.7GB 96 ``` 97 98 ## SEE ALSO 99 podman(1) 100 101 ## HISTORY 102 July 2017, Originally compiled by Ryan Cole <rycole@redhat.com>