1podman-stats(1)()                                            podman-stats(1)()
2
3
4

NAME

6       podman-stats  -  Display  a  live stream of one or more container's re‐
7       source usage statistics
8
9

SYNOPSIS

11       podman stats [options] [container]
12
13
14       podman container stats [options] [container]
15
16

DESCRIPTION

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

OPTIONS

32   --all, -a
33       Show all containers.  Only running containers are shown by default
34
35
36   --format=template
37       Pretty-print container statistics to JSON or using a Go template
38
39
40       Valid placeholders for the Go template are listed below:
41
42
43       ┌───────────────┬────────────────────┐
44Placeholder    Description        
45       ├───────────────┼────────────────────┤
46       │.ID            │ Container ID       │
47       ├───────────────┼────────────────────┤
48       │.Name          │ Container Name     │
49       ├───────────────┼────────────────────┤
50       │.CPUPerc       │ CPU percentage     │
51       ├───────────────┼────────────────────┤
52       │.MemUsage      │ Memory usage       │
53       ├───────────────┼────────────────────┤
54       │.MemUsageBytes │ Memory usage (IEC) │
55       ├───────────────┼────────────────────┤
56       │.MemPerc       │ Memory percentage  │
57       ├───────────────┼────────────────────┤
58       │.NetIO         │ Network IO         │
59       ├───────────────┼────────────────────┤
60       │.BlockIO       │ Block IO           │
61       ├───────────────┼────────────────────┤
62       │.PIDS          │ Number of PIDs     │
63       └───────────────┴────────────────────┘
64
65       When using a GO template, you may precede  the  format  with  table  to
66       print headers.
67
68
69   --interval=seconds, -i=seconds
70       Time in seconds between stats reports, defaults to 5 seconds.
71
72
73   --latest, -l
74       Instead  of  providing  the  container name or ID, use the last created
75       container. If you use methods other than Podman to run containers  such
76       as  CRI-O,  the  last  started  container could be from either of those
77       methods. (This option is not available with the remote  Podman  client,
78       including Mac and Windows (excluding WSL2) machines)
79
80
81   --no-reset
82       Do not clear the terminal/screen in between reporting intervals
83
84
85   --no-stream
86       Disable streaming stats and only pull the first result, default setting
87       is false
88
89

EXAMPLE

91              # podman stats -a --no-stream
92              ID             NAME              CPU %   MEM USAGE / LIMIT   MEM %   NET IO    BLOCK IO   PIDS
93              a9f807ffaacd   frosty_hodgkin    --      3.092MB / 16.7GB    0.02%   -- / --   -- / --    2
94              3b33001239ee   sleepy_stallman   --      -- / --             --      -- / --   -- / --    --
95
96
97
98              # podman stats --no-stream a9f80
99              ID             NAME             CPU %   MEM USAGE / LIMIT   MEM %   NET IO    BLOCK IO   PIDS
100              a9f807ffaacd   frosty_hodgkin   --      3.092MB / 16.7GB    0.02%   -- / --   -- / --    2
101
102
103
104              # podman stats --no-stream --format=json a9f80
105              [
106                  {
107                             "id": "a9f807ffaacd",
108                             "name": "frosty_hodgkin",
109                             "cpu_percent": "--",
110                             "mem_usage": "3.092MB / 16.7GB",
111                             "mem_percent": "0.02%",
112                             "netio": "-- / --",
113                             "blocki": "-- / --",
114                             "pids": "2"
115                  }
116              ]
117
118
119
120              # podman stats --no-stream --format "table {{.ID}} {{.Name}} {{.MemUsage}}" 6eae
121              ID             NAME           MEM USAGE / LIMIT
122              6eae9e25a564   clever_bassi   3.031MB / 16.7GB
123
124
125
126       Note: When using a slirp4netns network with the rootlesskit  port  han‐
127       dler, the traffic send via the port forwarding will be accounted to the
128       lo device.  Traffic accounted to lo is not accounted in the stats  out‐
129       put.
130
131

SEE ALSO

133       podman(1)
134
135

HISTORY

137       July   2017,   Originally   compiled  by  Ryan  Cole  rycole@redhat.com
138       ⟨mailto:rycole@redhat.com⟩
139
140
141
142                                                             podman-stats(1)()
Impressum