-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Collecting host stats from within docker containers with Telegraf 1.1 #2527
Comments
I believe this functionality is provided by gopsutil so it should work. If it is not, can you provide the plugin you are using, the base image you are experiencing the problem in, and any other relevant information so it can be duplicated. |
Yep, the issue seems to be related to the system/process input plugin |
Got it, we can do the proposed change. Maybe named |
I believe I have a related problem with my docker-telegraf - with |
…rs by enable procfs and sysfs location overrides
@diegito Can you open a new issue your net problem? |
|
I created a new issue #4006 to track the remaining work. |
In version 0.1X of Telegraf the HOST_PROC/HOST_SYS/HOST_ETC environment variables could be used to override the mountpoint location of /sys /proc and /etc filesystem, this allowed collecting host metrics from within a docker container.Looks like this is no longer supported on 1.1
From looking at the /plugins/inputs/system/processes.go file i can see that the /proc location is hardcoded.
Would it be possible to enable a configuration option for the input plugins to allow specifying the alternate mountpoint ?
Something like:
The text was updated successfully, but these errors were encountered: