pods icon indicating copy to clipboard operation
pods copied to clipboard

Feat/pod-stats

Open marhkb opened this issue 3 years ago • 1 comments

Stats seem not to work because

$ curl --unix-socket /run/user/1000/podman/podman.sock http://d/v3.0.0/libpod/pods/stats

returns just a single element and not a stream

marhkb avatar Aug 21 '22 19:08 marhkb

I managed to get it working by setting the stream=true query parameter like so:

    $ curl --unix-socket /run/user/1000/podman/podman.sock http://d/v3.0.0/libpod/pods/stats?stream=true

It is not documented in the swagger spec but I guess it is required for this endpoint to actually stream results.

I've also fixed this in podman-api-rs in https://github.com/vv9k/podman-api-rs/commit/9d02f4b60d3129ca7d2291e30d0f4136e5d9a1da so this PR should work as is after an update to the newer version of podman-api-rs.

Related podman issue: https://github.com/containers/podman/pull/14825

vv9k avatar Aug 27 '22 18:08 vv9k

i think it will be more coherent with gnome design to hide the notification button unless there is a notification

allaeddineomc avatar Oct 07 '22 10:10 allaeddineomc