diff options
author | Thomas Weber <towe75@googlemail.com> | 2021-07-21 07:42:39 +0200 |
---|---|---|
committer | Thomas Weber <towe75@googlemail.com> | 2021-07-27 07:20:47 +0200 |
commit | cdbbd79155a7752843f2b420c3036ce6c390a3b6 (patch) | |
tree | 2e438fbb7626b5ffa05e140a114e9c75ccc100a9 /vendor/github.com/fsouza/go-dockerclient/container_kill.go | |
parent | 389c9b8dca942fb4977823dd504d3d351cb92acd (diff) | |
download | podman-cdbbd79155a7752843f2b420c3036ce6c390a3b6.tar.gz podman-cdbbd79155a7752843f2b420c3036ce6c390a3b6.tar.bz2 podman-cdbbd79155a7752843f2b420c3036ce6c390a3b6.zip |
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>
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/container_kill.go')
0 files changed, 0 insertions, 0 deletions