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

Some mounts are not shown in the list #3

Closed
keckj opened this issue May 7, 2021 · 5 comments
Closed

Some mounts are not shown in the list #3

keckj opened this issue May 7, 2021 · 5 comments

Comments

@keckj
Copy link

keckj commented May 7, 2021

My field disk is mounted to /mnt/fields/0 and this mountpoint does not show up in mounts, and thus I cannot track disk usage.
I imagine I have to tweak something in grafana/dashboards/Chia.json but I cannot determine where $mounts is defined.

Sélection_446
Sélection_445

@retzkek
Copy link
Owner

retzkek commented May 7, 2021

The variables are defined in the dashboard settings (click the gear icon in the upper-right corner). The variable is populated when the dashboard is loaded from the labels on the node_filesystem_size metric in Prometheus.

Screenshot from 2021-05-07 08-10-11

It's likely that the node exporter isn't seeing the mounts. Are you running it in a container? What platform are you on?

@keckj
Copy link
Author

keckj commented May 7, 2021

My host is an ubuntu 20.04, and I run it with docker-compose up -d. In the prometheus node_exporter docs it is said that "any non-root mount points you want to monitor will need to be bind-mounted into the container" so I suppose I just have to modify the docker-compose.yml to add mount points !

@retzkek
Copy link
Owner

retzkek commented May 7, 2021

Oh, I thought it picked up the other mounts by having root bind-mounted into the container. In production I run the exporter natively (sudo apt install prometheus-node-exporter) so I didn't notice that.

@retzkek retzkek closed this as completed in c73d7f1 May 7, 2021
@keckj
Copy link
Author

keckj commented May 7, 2021

Thanks it works with the native exporter. I had to give read and execute rights on the mount to the prometheus user.
This can also be achieved by modifying user/group in /etc/systemd/system/multi-user.target.wants/prometheus-node-exporter.service. Node exporter options can be edited in /etc/default/prometheus-node-exporter. This file can be used to tweak collector.diskstats.ignored-devices and collector.filesystem.ignored-mount-points.

@retzkek
Copy link
Owner

retzkek commented May 7, 2021

Thanks, that's a helpful tip (personally I just have my Chia volumes set chmod 777 since I'm lazy 😃). I'll link to this issue from the README.

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

No branches or pull requests

2 participants