-
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
node_exporter prevents docker from removing monitored containers? #602
Comments
This seems like a Docker issue to me. Am I missing anything that node exporter is doing for this case, or does the same happen if you run
I honestly don't know, try it out? |
Ah, I understand now, the I think this can only be fixed in Docker, if at all. |
I see Thanks @mattbostock |
@mattbostock could you inform me what of exact host data it uses ? |
See #591 for details on how this data is collected. As far as I understand, each filesystem that is mounted into the container's mount namespace is represented. By mounting in Pending the namespace breakout in the other issue, all I can recommend is not to run node exporter in a container if you can help it at all. Put it directly under control of the host supervisor where it has a view of the whole machine. |
I had this issue for a quite a long time, not really knowing where it came from. |
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.5.0 to 0.6.0. - [Commits](golang/sync@v0.5.0...v0.6.0) --- updated-dependencies: - dependency-name: golang.org/x/sync dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Host operating system:
node_exporter version:
Are you running node_exporter in Docker?
yes
What did you do that produced an error?
Seems it is related to this issue from cadvisor
and this http://blog.hashbangbash.com/2014/11/docker-devicemapper-fix-for-device-or-resource-busy-ebusy/
Result is
and I found that the node_exporter container holds the container's devicemapper mount point
What I assume is ..
if new container is created with volume including /var/lib/docker,
all of mount namespace of existing containers is leaked to new container. : (
and is it ok to use node exporter container with out " -v "/:/rootfs:ro" \ " ?
The text was updated successfully, but these errors were encountered: