Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

container size widget #127

Open
spiermar opened this issue Apr 26, 2016 · 5 comments
Open

container size widget #127

spiermar opened this issue Apr 26, 2016 · 5 comments

Comments

@spiermar
Copy link
Contributor

No description provided.

@spiermar
Copy link
Contributor Author

Looking for a metric that represents the values in the size column:

$ sudo docker ps -s
CONTAINER ID        IMAGE               COMMAND              CREATED             STATUS              PORTS               NAMES               SIZE
14979371d9a0        httpd:latest        "httpd-foreground"   8 days ago          Up 8 days           80/tcp              prickly_pasteur     2 B
cdf81c35b515        cloudperf:latest    "./workload -l100"   13 days ago         Up 13 days                              workload2           0 B
168553e66eee        ubuntu:latest       "/bin/bash"          13 days ago         Up 13 days                              angry_ritchie       0 B
a470bdb21c48        ubuntu:latest       "/bin/bash"          13 days ago         Up 13 days                              jovial_bell         0 B
cb7d4cc4412f        ubuntu:latest       "/bin/bash"          5 weeks ago         Up 5 weeks                              suspicious_newton   573 B

@spiermar
Copy link
Contributor Author

@natoscott anything like that already available? couldn't find anything under containers.*

@natoscott
Copy link
Contributor

@spiermar I'm looking, but haven't uncovered where this information can be found yet (we definitely do not export this information from PCP today). We might need to start augmenting the data we provide now with additional metrics from the Docker REST API (if that's where it lives).

@spiermar
Copy link
Contributor Author

Couldn't find it in the pseudo-files, but I might be missing something.

@evelynmitchell
Copy link

GET /containers/(name)/json?size=1 will return the size in the SizeRw and SizeRootFs fields.
from: https://docs.docker.com/engine/reference/api/docker_remote_api/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants