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,  you may precede the format with table to
56       print headers.
57
58
59   --latest, -l
60       Instead of providing the pod name or ID,  use  the  last  created  pod.
61       (This  option is not available with the remote Podman client, including
62       Mac and Windows (excluding WSL2) machines)
63
64
65   --no-reset
66       Do not clear the terminal/screen in between reporting intervals
67
68
69   --no-stream
70       Disable streaming pod stats and only pull  the  first  result,  default
71       setting is false
72
73

EXAMPLE

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

SEE ALSO

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

HISTORY

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