1podman-stats(1)() podman-stats(1)()
2
3
4
6 podman-stats - Display a live stream of one or more container's re‐
7 source usage statistics
8
9
11 podman stats [options] [container]
12
13
14 podman container stats [options] [container]
15
16
18 Display a live stream of one or more containers' resource usage statis‐
19 tics
20
21
22 Note: Podman stats will not work in rootless environments that use
23 CGroups V1. Podman stats relies on CGroup information for statistics,
24 and CGroup v1 is not supported for rootless use cases.
25
26
27 Note: Rootless environments that use CGroups V2 are not able to report
28 statistics about their networking usage.
29
30
32 --all, -a
33 Show all containers. Only running containers are shown by default
34
35
36 --latest, -l
37 Instead of providing the container name or ID, use the last created
38 container. If you use methods other than Podman to run containers such
39 as CRI-O, the last started container could be from either of those
40 methods. (This option is not available with the remote Podman client)
41
42
43 --no-reset
44 Do not clear the terminal/screen in between reporting intervals
45
46
47 --no-stream
48 Disable streaming stats and only pull the first result, default setting
49 is false
50
51
52 --interval=seconds, -i=seconds
53 Time in seconds between stats reports, defaults to 5 seconds.
54
55
56 --format=template
57 Pretty-print container statistics to JSON or using a Go template
58
59
60 Valid placeholders for the Go template are listed below:
61
62
63 ┌───────────────┬────────────────────┐
64 │Placeholder │ Description │
65 ├───────────────┼────────────────────┤
66 │.ID │ Container ID │
67 ├───────────────┼────────────────────┤
68 │.Name │ Container Name │
69 ├───────────────┼────────────────────┤
70 │.CPUPerc │ CPU percentage │
71 ├───────────────┼────────────────────┤
72 │.MemUsage │ Memory usage │
73 ├───────────────┼────────────────────┤
74 │.MemUsageBytes │ Memory usage (IEC) │
75 ├───────────────┼────────────────────┤
76 │.MemPerc │ Memory percentage │
77 ├───────────────┼────────────────────┤
78 │.NetIO │ Network IO │
79 ├───────────────┼────────────────────┤
80 │.BlockIO │ Block IO │
81 ├───────────────┼────────────────────┤
82 │.PIDS │ Number of PIDs │
83 └───────────────┴────────────────────┘
84
85 When using a GO template, you may precede the format with table to
86 print headers.
87
88
90 # podman stats -a --no-stream
91 ID NAME CPU % MEM USAGE / LIMIT MEM % NET IO BLOCK IO PIDS
92 a9f807ffaacd frosty_hodgkin -- 3.092MB / 16.7GB 0.02% -- / -- -- / -- 2
93 3b33001239ee sleepy_stallman -- -- / -- -- -- / -- -- / -- --
94
95
96
97 # podman stats --no-stream a9f80
98 ID NAME CPU % MEM USAGE / LIMIT MEM % NET IO BLOCK IO PIDS
99 a9f807ffaacd frosty_hodgkin -- 3.092MB / 16.7GB 0.02% -- / -- -- / -- 2
100
101
102
103 # podman stats --no-stream --format=json a9f80
104 [
105 {
106 "id": "a9f807ffaacd",
107 "name": "frosty_hodgkin",
108 "cpu_percent": "--",
109 "mem_usage": "3.092MB / 16.7GB",
110 "mem_percent": "0.02%",
111 "netio": "-- / --",
112 "blocki": "-- / --",
113 "pids": "2"
114 }
115 ]
116
117
118
119 # podman stats --no-stream --format "table {{.ID}} {{.Name}} {{.MemUsage}}" 6eae
120 ID NAME MEM USAGE / LIMIT
121 6eae9e25a564 clever_bassi 3.031MB / 16.7GB
122
123
124
126 podman(1)
127
128
130 July 2017, Originally compiled by Ryan Cole rycole@redhat.com
131 ⟨mailto:rycole@redhat.com⟩
132
133
134
135 podman-stats(1)()