cloudalchemy / ansible-node-exporter

Provision basic metrics exporter for prometheus monitoring tool
MIT License
501 stars 270 forks source link

Set systemd ProtectHome to read-only for all mountpaths below /home #211

Closed svinther closed 3 years ago

svinther commented 3 years ago

Otherwise statfs for a fs mounted on /home/xxxx will have permission issues, even if node-exp is granted access to the path through group membership or setfacl.

SamSpiri commented 3 years ago

Your code will produce multiple lines if you have more than one mount inside /home look into my code https://github.com/cloudalchemy/ansible-node-exporter/pull/220

svinther commented 3 years ago

closing this in favor of https://github.com/cloudalchemy/ansible-node-exporter/pull/220