mustafaakin / docker-resource-reporter

Reports the resource usage of Docker containers to InfluxDB
MIT License
39 stars 1 forks source link

[Suggestion]: UI #1

Open prologic opened 9 years ago

prologic commented 9 years ago

I wouldn't go to all the effort of writing a UI.

Instead integrate this with InfluxDB and Grafana.

Perhaps include instructions for how to do so or build a Dockerfile/image hosted on the Docker Hub where one can "docker run" and get nice stats/graphs for their containers (probably have to bind mount /var/run/docker.sock).

mustafaakin commented 9 years ago

Thanks for the suggestion however I believe Grafana is a client side application only, so I must expose InfluxDB ports to public, do you know anyway to overcome this? Grafana looks really good

prologic commented 9 years ago

I'd probably just provide a "means" to get the necessary data into InfluxDB and leave it as an exercise for the user to setup InfluxDB+Grapfana and point the script(s) to their instance(s).

tobegit3hub commented 9 years ago

You may refer to https://github.com/google/cadvisor.

prologic commented 9 years ago

cadvisor is nice but is a complete solution and competed with docker-resource-reporter :)

I think I'd like to see docker-resource-repoter become a tool to actually shove data into round robin databases like InfluxDB, etc.

mustafaakin commented 9 years ago

Yeah cadvisor seems pretty solid, I remember playing with it but completely forgot it. I actually needed this for my job scheduling research for multi-hosts, but I can transform it as a tool to report it to InfluxDB as well Graphite and maybe others. I am really open to pull requests, suggestions or maybe another contributors, so don't hesitate :)

tobegit3hub commented 9 years ago

If you guys want to collect metrics from cgroups, how about making it easier with command docker metrics. Refer to https://github.com/docker/docker/pull/8886, it would be great for any tools or command-line operations to get the metrics of docker containers.