From 1cf47b5780c2825196365f1855fff29c089ceedd Mon Sep 17 00:00:00 2001
From: Krzysztof Klimonda <kklimonda@syntaxhighlighted.com>
Date: Mon, 31 Aug 2020 11:41:32 +0200
Subject: [PATCH] Do not create private filesystem namespace for /tmp

When node_exporter service is configured to use private /tmp, it can
no longer access mount points under /tmp either - node_exporter will
log errors, bump node_filesystem_device_error metric and skip metrics
related to that mount point.
---
 templates/node_exporter.service.j2 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/templates/node_exporter.service.j2 b/templates/node_exporter.service.j2
index 1ea56c2..e4c76cc 100644
--- a/templates/node_exporter.service.j2
+++ b/templates/node_exporter.service.j2
@@ -33,7 +33,6 @@ Restart=always
 RestartSec=1
 StartLimitInterval=0
 
-PrivateTmp=yes
 {% for m in ansible_mounts if m.mount == '/home' %}
 ProtectHome=read-only
 {% else %}
-- 
GitLab