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

NAME

6       podman-stats  -  Display  a  live  stream  of  one  or more container's
7       resource 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   --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.
41
42
43       The latest option is not supported on the remote client.
44
45
46   --no-reset
47       Do not clear the terminal/screen in between reporting intervals
48
49
50   --no-stream
51       Disable streaming stats and only pull the first result, default setting
52       is false
53
54
55   --format=template
56       Pretty-print container statistics to JSON or using a Go template
57
58
59       Valid placeholders for the Go template are listed below:
60
61
62       ┌───────────────┬────────────────────┐
63Placeholder    Description        
64       ├───────────────┼────────────────────┤
65       │.ID            │ Container ID       │
66       ├───────────────┼────────────────────┤
67       │.Name          │ Container Name     │
68       ├───────────────┼────────────────────┤
69       │.CPUPerc       │ CPU percentage     │
70       ├───────────────┼────────────────────┤
71       │.MemUsage      │ Memory usage       │
72       ├───────────────┼────────────────────┤
73       │.MemUsageBytes │ Memory usage (IEC) │
74       ├───────────────┼────────────────────┤
75       │.MemPerc       │ Memory percentage  │
76       ├───────────────┼────────────────────┤
77       │.NetIO         │ Network IO         │
78       ├───────────────┼────────────────────┤
79       │.BlockIO       │ Block IO           │
80       ├───────────────┼────────────────────┤
81       │.PIDS          │ Number of PIDs     │
82       ├───────────────┼────────────────────┤
83       │               │                    │
84       └───────────────┴────────────────────┘
85
86       When using a GO template, you may precede  the  format  with  table  to
87       print headers.
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

SEE ALSO

127       podman(1)
128
129

HISTORY

131       July   2017,   Originally   compiled  by  Ryan  Cole  rycole@redhat.com
132       ⟨mailto:rycole@redhat.com⟩
133
134
135
136                                                             podman-stats(1)()
Impressum