-
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 not reporting filesystem metrics for additional volume mounts in Docker #3194
Comments
I wonder if the filesystem is one of the excluded types in |
so when I do
and the other command |
Got it. Not showing up as a mountpoint (through Can you run some commands to help further debug? Checking this file: (I doubt it'll be different from the
What options did you give to docker to to mount media? Specifically, I'm interested in the values after Or, can you show the current options for media in the
e.g. it would be something like this
|
running the first command returns nothing and the second one: `docker exec node_exporter grep media /proc/self/mountinf`` returns
and the
|
Thank you! Nothing looks obviously wrong from that output. Can you add The log error messages in the filesystem collector are all debug level. |
This are the logs after enabling debugging.
I don't see anything relevant, but then again, I am far from an expert on the matter. |
Host operating system: output of
uname -a
node_exporter version: output of
node_exporter --version
node_exporter command line flags
node_exporter log output
Are you running node_exporter in Docker?
Yes
What did you do that produced an error?
docker exec node_exporter df -h | grep media -A 1
:What did you expect to see?
The filesystem metrics for the mounted volume at
/media
showing up in Prometheus queries like:node_filesystem_avail_bytes{device="/dev/mapper/ubuntu--vg-ubuntu--lv", mountpoint="/media"}
What did you see instead?
Only the root filesystem metrics are reported:
node_filesystem_avail_bytes{device="/dev/mapper/ubuntu--vg-ubuntu--lv", fstype="ext4", instance="host.docker.internal:9100", job="node_exporter", mountpoint="/"} [value]
No metrics are reported for the /media mountpoint despite it being correctly mounted in the container.
The text was updated successfully, but these errors were encountered: