1podman-pod-stats(1) General Commands Manual 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 --format=template
25 Pretty-print container statistics to JSON or using a Go template
26
27
28 Valid placeholders for the Go template are listed below:
29
30
31 ┌───────────────┬────────────────────┐
32 │Placeholder │ Description │
33 ├───────────────┼────────────────────┤
34 │.BlockIO │ Block IO │
35 ├───────────────┼────────────────────┤
36 │.CID │ Container ID │
37 ├───────────────┼────────────────────┤
38 │.CPU │ CPU percentage │
39 ├───────────────┼────────────────────┤
40 │.Mem │ Memory percentage │
41 ├───────────────┼────────────────────┤
42 │.MemUsage │ Memory usage │
43 ├───────────────┼────────────────────┤
44 │.MemUsageBytes │ Memory usage (IEC) │
45 ├───────────────┼────────────────────┤
46 │.Name │ Container Name │
47 ├───────────────┼────────────────────┤
48 │.NetIO │ Network IO │
49 ├───────────────┼────────────────────┤
50 │.PIDS │ Number of PIDs │
51 ├───────────────┼────────────────────┤
52 │.Pod │ Pod ID │
53 └───────────────┴────────────────────┘
54
55 When using a Go template, precede the format with table to print head‐
56 ers.
57
58
59 --latest, -l
60 Instead of providing the pod name or ID, use the last created pod.
61 Note: the last started pod can be from other users of Podman on the
62 host machine. (This option is not available with the remote Podman
63 client, including Mac and Windows (excluding WSL2) machines)
64
65
66 --no-reset
67 Do not clear the terminal/screen in between reporting intervals
68
69
70 --no-stream
71 Disable streaming pod stats and only pull the first result, default
72 setting is false
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(1), podman-pod(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)