Add the support for redis in cAdvisor's storage#693
Add the support for redis in cAdvisor's storage#693superzhaoyy wants to merge 54 commits intogoogle:masterfrom superzhaoyy:master
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
|
Can one of the admins verify this patch? |
|
I signed it! |
|
CLAs look good, thanks! |
There was a problem hiding this comment.
Hostname() won't return what you expect if cAdvisor is running inside a container. You probably want to accept an IP or hostname as a flag.
|
ok to test |
|
this looks great @superzhaoyy, thanks for the PR! |
|
Looks like we'll need to add the redis godep btw. |
|
hi @vmarmol why I can't add the redis godep on Godeps? when I run [ go get github.com/garyburd/redigo/redis] [ godep save ] |
|
Usually what works for me is this (from cAdvisor root): Does that return any problems? |
|
thanks@vmarmol |
There was a problem hiding this comment.
Can you run with go1.4 or just change the version back in this file manually?
|
Looks great, just minor nits. Can you also squash your commits. Thanks @superzhaoyy ! |
|
hi@rjnagal |
This gives us a bit over one event per second for one day. Assuming 250 bytes per event, the max memory usage is ~24MiB per event type.
This will allow us to register and run custom collectors for each container.
Added missing docker page handling.
The current logic assumes that entries are added to the store in monotonically increasing order for time. This is not true when we add creation events for existing containers.
Containers with subcontainers always report creation time to be same as the time of creation of the latest subcontainer. Still not an ideal solution, but accurate for most practical purposes.
Everything other than cache information is available through /proc/cpuinfo.
1) cgroups were getting mounted at /cgroup: not /cgroup 2) incorrect flag was used: provided but not defined: --privilege See 'docker run --help'.
Add the support of redis in cadvisor's storage Add redis for cadvisor's storage Add the support for redis in the cAdvisor's storage Update storagedriver.go
|
hi @vmarmol |
|
That works too :) It looks like you got a rebase slightly incorrect. Git is a bit of a pain to get used to for stuff like this... |
|
@vmarmol |
|
Yes you certainly can close this PR and make a new one. You shouldn't need to delete your repository, just make a new branch: Assuming that |
|
thanks@vmarmol |
provide redis driver for cAdvisor's storage,we can push the data from cAdvisor to redis.