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

EXAMPLE

74              # podman pod stats -a --no-stream
75              ID             NAME              CPU %   MEM USAGE / LIMIT   MEM %   NET IO    BLOCK IO   PIDS
76              a9f807ffaacd   frosty_hodgkin    --      3.092MB / 16.7GB    0.02%   -- / --   -- / --    2
77              3b33001239ee   sleepy_stallman   --      -- / --             --      -- / --   -- / --    --
78
79
80
81              # podman pod stats --no-stream a9f80
82              ID             NAME             CPU %   MEM USAGE / LIMIT   MEM %   NET IO    BLOCK IO   PIDS
83              a9f807ffaacd   frosty_hodgkin   --      3.092MB / 16.7GB    0.02%   -- / --   -- / --    2
84
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
103              # podman pod stats --no-stream --format "table {{.ID}} {{.Name}} {{.MemUsage}}" 6eae
104              ID             NAME           MEM USAGE / LIMIT
105              6eae9e25a564   clever_bassi   3.031MB / 16.7GB
106
107
108

SEE ALSO

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

HISTORY

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