New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get metrics from docker daemon #8842
Comments
Perhaps this might be interesting for you; https://github.com/google/cadvisor and a nice blogpost on it; http://blog.tutum.co/2014/08/07/using-cadvisor-to-monitor-docker-containers/ Features are constantly being added to cAdvisor, so it's good to track their repository. |
Thanks @thaJeztah . I have known about cAdvisor and it's great. But sometimes I want to know about the resources of containers in the easy way like It's would be better if the docker client supports this without install cAdvisor. I hope cAdvisor could help to develop then it can get metrics directly with docker remote api 😄 |
I've made first simple implementation of this feature:
Code is ugly, but PoC is better than nothing. If someone is interested, we can collaborate on it and make it production ready (add tests, define proper metrics set, enhance usability (at least add You can check code at: https://github.com/monsterzz/docker/compare/8842-docker-metrics I think we need someone from docker in this issue :) |
That looks great. Thanks @monsterzz . Most developers need this to monitor the resources of their containers and I hope @shykes could pay attention to it. |
This is proposing to add per container metrics, based on cgroups, as well as docker engine metrics about Docker's internal health and job management. This will either solve or at least provide a basis to address moby#8875, moby#1091, moby#4530, moby#5473, moby#8842 Signed-off-by: Johannes 'fish' Ziemke <github@freigeist.org>
Let me know if there is anything I can do to help with this. It will be great to get this info from over the api. |
@tobegit3hub @monsterzz @wojons I think what is really needed is a full Proposal - ie, a PR with the propsed documentation changes showing how it'll work. I do get the feeling that @discordianfish is working on writing up something too. |
@SvenDowideit Great! Looking forward to this feature and let us know if we can do something. |
See the linked proposal: #9130 and let me know if something is still missing. From my perspective the next step would be to get this proposal acknowledged so we can start implementing it. |
This is proposing to add per container metrics, based on cgroups, as well as docker engine metrics about Docker's internal health and job management. This will either solve or at least provide a basis to address moby#8875, moby#1091, moby#4530, moby#5473, moby#8842 Signed-off-by: Johannes 'fish' Ziemke <github@freigeist.org>
@discordianfish I think you proposal add a few other features. I'm going to go through each of these and see if I can get the container metrics ( resource usage ) implemented in the API as the first step. |
#9984 was merged so this is resolved. Hope you like it! |
Great 👍 |
I have found the tutorial to get metrics from cgroup in https://docs.docker.com/articles/runmetrics/.
It would be great for us to get the metrics of containers from docker client. Is that possible to implement something like
docker metrics $ip
? I know somebody has implemented this but not in trunk.The text was updated successfully, but these errors were encountered: