mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
stats: add a interval parameter to cli and api stream mode
podman stats polled by default in a 1 sec period. This can put quite some load on a machine if you run many containers. The default value is now 5 seconds. You can change this interval with a new, optional, --interval, -i cli flag. The api request got also a interval query parameter for the same purpose. Additionally a unused const was removed. Api and cli will fail the request if a 0 or negative value is passed in. Signed-off-by: Thomas Weber <towe75@googlemail.com>
This commit is contained in:
@ -37,6 +37,10 @@ Do not clear the terminal/screen in between reporting intervals
|
||||
|
||||
Disable streaming stats and only pull the first result, default setting is false
|
||||
|
||||
#### **--interval**=*seconds*, **-i**=*seconds*
|
||||
|
||||
Time in seconds between stats reports, defaults to 5 seconds.
|
||||
|
||||
#### **--format**=*template*
|
||||
|
||||
Pretty-print container statistics to JSON or using a Go template
|
||||
|
Reference in New Issue
Block a user