Skip to content
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

Configurable Docker endpoint #463

Closed
lnguyen opened this issue Dec 25, 2015 · 5 comments
Closed

Configurable Docker endpoint #463

lnguyen opened this issue Dec 25, 2015 · 5 comments

Comments

@lnguyen
Copy link

lnguyen commented Dec 25, 2015

Is it possible to make docker endpoint configurable and have a default if it isn't specified

@sparrc
Copy link
Contributor

sparrc commented Jan 15, 2016

can you provide more details?

@zstyblik
Copy link
Contributor

@sparrc my guess is Docker over TCP, resp. DOCKER_HOST=tcp://X.X.X.X:2375/ instead of U*nix socket in /var/run/docker.sock.

@lnguyen
Copy link
Author

lnguyen commented Jan 15, 2016

My unix socket isn't running at /var/lib/run/docker.sock. and would like for it to be configurable so I can use this awesome plugin for my servers.

On January 14, 2016 at 9:02:49 PM, Cameron Sparr (notifications@github.com) wrote:

can you provide more details?


Reply to this email directly or view it on GitHub.

@zstyblik
Copy link
Contributor

@longnguyen11288 I'd say this is rather question for https://github.com/shirou/gopsutil/ which is being utilized by Telegraf.

EDIT: link to gopsutil

@sparrc
Copy link
Contributor

sparrc commented Jan 20, 2016

@longnguyen11288 It should be fairly easy to change this: https://github.com/influxdata/telegraf/blob/master/plugins/inputs/system/ps.go#L139

But does your system still have the cgroup files (such as /sys/fs/cgroup/cpuacct/docker) available locally? because https://github.com/shirou/gopsutil/ relies on these local files to gather stats.

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

Successfully merging a pull request may close this issue.

3 participants