-
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
Missing 'path' key for '/' mount with [[inputs.disk]] in Docker #3729
Labels
Comments
Can you without HOST_MOUNT_PREFIX set and paste the output? You may wish to run with these options added on the end so that it will exit after one collection: |
Without
With
I think left trimming paths starting with HOST_MOUNT_PREFIX causes the root path |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Monitoring Docker Engine host within a Docker container doesn't have the 'path' key for '/' mount. I was following the FAQ here: https://github.com/influxdata/telegraf/blob/1.5.1/docs/FAQ.md
Relevant telegraf.conf:
System info:
Using
telegraf:1.5.1-alpine
and tested ontelegraf:1.5.1
as well on Amazon AMI EC2 instance. Docker version17.09.1-ce, build 3dfb8343b139d6342acfd9975d7f1068b5b1c3d3
.Steps to reproduce:
telegraf.conf
with the contents above.docker run --rm --name telegraf -v $(pwd)/telegraf.conf:/etc/telegraf/telegraf.conf:ro -v /:/hostfs:ro -v /etc:/hostfs/etc:ro -v /proc:/hostfs/proc:ro -v /sys:/hostfs/sys:ro -v /var/run/utmp:/var/run/utmp:ro -e HOST_ETC=/hostfs/etc -e HOST_PROC=/hostfs/proc -e HOST_SYS=/hostfs/sys -e HOST_MOUNT_PREFIX=/hostfs telegraf:1.5.1-alpine
Expected behavior:
Actual behavior:
Missing
path
:Additional info:
The text was updated successfully, but these errors were encountered: