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

EXAMPLE

88              # podman stats -a --no-stream
89              ID             NAME              CPU %   MEM USAGE / LIMIT   MEM %   NET IO    BLOCK IO   PIDS
90              a9f807ffaacd   frosty_hodgkin    --      3.092MB / 16.7GB    0.02%   -- / --   -- / --    2
91              3b33001239ee   sleepy_stallman   --      -- / --             --      -- / --   -- / --    --
92
93
94
95              # podman stats --no-stream a9f80
96              ID             NAME             CPU %   MEM USAGE / LIMIT   MEM %   NET IO    BLOCK IO   PIDS
97              a9f807ffaacd   frosty_hodgkin   --      3.092MB / 16.7GB    0.02%   -- / --   -- / --    2
98
99
100
101              # podman stats --no-stream --format=json a9f80
102              [
103                  {
104              "id": "a9f807ffaacd",
105              "name": "frosty_hodgkin",
106              "cpu_percent": "--",
107              "mem_usage": "3.092MB / 16.7GB",
108              "mem_percent": "0.02%",
109              "netio": "-- / --",
110              "blocki": "-- / --",
111              "pids": "2"
112                  }
113              ]
114
115
116
117              # podman stats --no-stream --format "table {{.ID}} {{.Name}} {{.MemUsage}}" 6eae
118              ID             NAME           MEM USAGE / LIMIT
119              6eae9e25a564   clever_bassi   3.031MB / 16.7GB
120
121
122

SEE ALSO

124       podman(1)
125
126

HISTORY

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