-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Update statsd storage - issue #724 #798
Conversation
Can one of the admins verify this patch? |
ok to test |
} | ||
return nil | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move open, close, and Send to a separate client file? We are trying to change the metrics format and merge some of the container stats to values methods. It will make the conversion a bit easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem, i will update it soon, maybe today.
Thanks for the PR, @jmaitrehenry It looks great overall. Will try it out soon ! |
LGTM. This works fine' thanks @jmaitrehenry (and sorry for the delay). Let's squash the PRs and its ready to merge. |
Build finished. No test results found. |
Add Fs stats to statsd Update import for pointing to official repository Update statsd storage for respecting fmt coding style Create a separate client file Fix gofmt
Squash done! |
Thanks, merging. |
Update statsd storage - issue #724
Build finished. No test results found. |
@jmaitrehenry do you know if there's a way to use a Docker env variable as the docker container name ? Kinda like what was done with Prometheus backend: #546 When running in a Mesos environment, containers are just IDs:
You can pass Docker environment variables though, so you could technically inspect the container to grab a certain variable to use as name. Thoughts? |
cAdvisor should expose container env variables as part of its API. Have you On Fri, Mar 4, 2016 at 11:20 AM, Anthony Scalisi notifications@github.com
|
I did, but I can't find how you can use it in the statsd backend unless I'm mistaken the storage backend need to support it no? |
Yeah. The backend needs to export it. |
Hi, I just finish a statsd storage for cadvisor, if you wish try it and send me some feedback about how I did it, you can test it by running my docker image jmaitrehenry/cadvisor or by checking this PR
This is how I run it:
With storage_driver_db is use as a prefix for all stats, I use it for prefixing stats with the docker node hostname for example.
This is a sample of gauge receive by statsd :