1podman-pod-stats(1)         General Commands Manual        podman-pod-stats(1)
2
3
4

NAME

6       podman-pod-stats  -  Display  a live stream of resource usage stats for
7       containers in one or more pods
8
9

SYNOPSIS

11       podman pod stats [options] [pod]
12
13

DESCRIPTION

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

OPTIONS

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       ┌───────────────┬────────────────────┐
32Placeholder    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

EXAMPLE

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       # podman pod stats --no-stream a9f80
83       ID             NAME             CPU %   MEM USAGE / LIMIT   MEM %   NET IO    BLOCK IO   PIDS
84       a9f807ffaacd   frosty_hodgkin   --      3.092MB / 16.7GB    0.02%   -- / --   -- / --    2
85
86
87       # podman pod stats --no-stream --format=json a9f80
88       [
89           {
90               "id": "a9f807ffaacd",
91               "name": "frosty_hodgkin",
92               "cpu_percent": "--",
93               "mem_usage": "3.092MB / 16.7GB",
94               "mem_percent": "0.02%",
95               "netio": "-- / --",
96               "blocki": "-- / --",
97               "pids": "2"
98           }
99       ]
100
101
102       # podman pod stats --no-stream --format "table {{.ID}} {{.Name}} {{.MemUsage}}" 6eae
103       ID             NAME           MEM USAGE / LIMIT
104       6eae9e25a564   clever_bassi   3.031MB / 16.7GB
105
106
107

SEE ALSO

109       podman(1), podman-pod(1)
110
111

HISTORY

113       February 2019,  Originally  compiled  by  Dan  Walsh  dwalsh@redhat.com
114       ⟨mailto:dwalsh@redhat.com⟩
115
116
117
118                                                           podman-pod-stats(1)
Impressum