1podman-pod-stats(1)() podman-pod-stats(1)()
2
3
4
6 podman-pod-stats - Display a live stream of resource usage stats for
7 containers in one or more pods
8
9
11 podman pod stats [options] [pod]
12
13
15 Display a live stream of containers in one or more pods resource usage
16 statistics. Running rootless is only supported on cgroups v2.
17
18
20 --all, -a
21 Show all containers. Only running containers are shown by default
22
23
24 --latest, -l
25 Instead of providing the pod name or ID, use the last created pod.
26 (This option is not available with the remote Podman client)
27
28
29 --no-reset
30 Do not clear the terminal/screen in between reporting intervals
31
32
33 --no-stream
34 Disable streaming pod stats and only pull the first result, default
35 setting is false
36
37
38 --format=template
39 Pretty-print container statistics to JSON or using a Go template
40
41
42 Valid placeholders for the Go template are listed below:
43
44
45 ┌───────────────┬────────────────────┐
46 │Placeholder │ Description │
47 ├───────────────┼────────────────────┤
48 │.Pod │ Pod ID │
49 ├───────────────┼────────────────────┤
50 │.CID │ Container ID │
51 ├───────────────┼────────────────────┤
52 │.Name │ Container Name │
53 ├───────────────┼────────────────────┤
54 │.CPU │ CPU percentage │
55 ├───────────────┼────────────────────┤
56 │.MemUsage │ Memory usage │
57 ├───────────────┼────────────────────┤
58 │.MemUsageBytes │ Memory usage (IEC) │
59 ├───────────────┼────────────────────┤
60 │.Mem │ Memory percentage │
61 ├───────────────┼────────────────────┤
62 │.NetIO │ Network IO │
63 ├───────────────┼────────────────────┤
64 │.BlockIO │ Block IO │
65 ├───────────────┼────────────────────┤
66 │.PIDS │ Number of PIDs │
67 ├───────────────┼────────────────────┤
68 │ │ │
69 └───────────────┴────────────────────┘
70
71 When using a GO template, you may precede the format with table to
72 print headers.
73
74
76 # podman pod stats -a --no-stream
77 ID NAME CPU % MEM USAGE / LIMIT MEM % NET IO BLOCK IO PIDS
78 a9f807ffaacd frosty_hodgkin -- 3.092MB / 16.7GB 0.02% -- / -- -- / -- 2
79 3b33001239ee sleepy_stallman -- -- / -- -- -- / -- -- / -- --
80
81
82
83 # podman pod stats --no-stream a9f80
84 ID NAME CPU % MEM USAGE / LIMIT MEM % NET IO BLOCK IO PIDS
85 a9f807ffaacd frosty_hodgkin -- 3.092MB / 16.7GB 0.02% -- / -- -- / -- 2
86
87
88
89 # podman pod stats --no-stream --format=json a9f80
90 [
91 {
92 "id": "a9f807ffaacd",
93 "name": "frosty_hodgkin",
94 "cpu_percent": "--",
95 "mem_usage": "3.092MB / 16.7GB",
96 "mem_percent": "0.02%",
97 "netio": "-- / --",
98 "blocki": "-- / --",
99 "pids": "2"
100 }
101 ]
102
103
104
105 # podman pod stats --no-stream --format "table {{.ID}} {{.Name}} {{.MemUsage}}" 6eae
106 ID NAME MEM USAGE / LIMIT
107 6eae9e25a564 clever_bassi 3.031MB / 16.7GB
108
109
110
112 podman-pod(1), podman(1)
113
114
116 February 2019, Originally compiled by Dan Walsh dwalsh@redhat.com
117 ⟨mailto:dwalsh@redhat.com⟩
118
119
120
121 podman-pod-stats(1)()