Skip to content
Snippets Groups Projects
Commit 9e55b070 authored by Vasily's avatar Vasily Committed by Paweł Krupa
Browse files

Fix wrong size of /home shown by node-exporter (#87)

Node-exporter calculates wrong disk space if /home is a separate partition
since systemd protects /home from it.

Change protection to read-only if /home is a mountpoint.

[minor] release
parent b2365f2c
Branches
Tags 0.14.0
No related merge requests found
...@@ -29,7 +29,11 @@ SyslogIdentifier=node_exporter ...@@ -29,7 +29,11 @@ SyslogIdentifier=node_exporter
Restart=always Restart=always
PrivateTmp=yes PrivateTmp=yes
{% for m in ansible_mounts if m.mount == '/home' %}
ProtectHome=read-only
{% else %}
ProtectHome=yes ProtectHome=yes
{% endfor %}
NoNewPrivileges=yes NoNewPrivileges=yes
{% if node_exporter_systemd_version | int >= 232 %} {% if node_exporter_systemd_version | int >= 232 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment