Zun

add zun stats api and cli

Registered by Shunli Zhou

This blueprint has been superseded. See the newer blueprint "support to display stats snapshot of the container" for updated plans.

As docker support "docker stats <containerid>" to retrive the docker usage info, such as cpu, memory, net and block io usage info.

I think it's good for zun to have "zun stats <containerid>" to retrive container usage info.

Blueprint information

Status:
Complete
Approver:
hongbin
Priority:
Medium
Drafter:
Shunli Zhou
Direction:
Approved
Assignee:
Shunli Zhou
Definition:
Superseded
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
hongbin

Related branches

Sprints

Whiteboard

@Shunli,
The docker stats command returns a live stream of resource usage statistics, which might not be easy for Zun to support the same. That is mainly because Zun API doesn't support streaming right now. Do you have an idea for implementation this feature? Perhaps briefly describe what you thought in here would be enough.
-- hongbin 2017-04-12

@hongbin,
No clear solution for live stream now, but at least we can support to retrive a snapshot of 'docker stats' at first. I will do some investigation later for live stream.
--Shunli 2017-04-13

@Shunli,
OK, I see. It is possible to retrieve a snapshot of stats, so it looks feasible enough to support. My major concern is the complexity of supporting "streaming" of stats but you clarified that it is out of the scope. Then, this proposal looks good to me.
-- hongbin 2017-04-14

@hongbin, @Shunli,
https://review.openstack.org/#/c/435649/ (server)
https://review.openstack.org/#/c/435668/ (client)
The pacth is committed in a few months ago. And it works.
-- Feng Shengqin 2017-04-24

@feng shengqin
Thanks for the patch. Seems i logged a duplicated BP. I will try it later and give my comments.
---Shunli Zhou 2017-04-25

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.