Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

optionally allow node_exporter access to shared /tmp #179

Merged
merged 1 commit into from
Oct 2, 2020

Conversation

kklimonda
Copy link
Contributor

by default node_exporter.service sets PrivateTmp=yes which prevents
node_exporter from monitoring the actual /tmp, e.g. for children mount
points.

@github-actions github-actions bot added area/jinja Templates area/vars Ansible variables used in role labels Aug 31, 2020
@@ -20,3 +20,4 @@ node_exporter_enabled_collectors:
# ignored-fs-types: "^(sys|proc|auto)fs$"

node_exporter_disabled_collectors: []
node_exporter_private_tmp: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if this wasn't conditional as we intend to allow permissions to run most node_exporter collectors without tinkering with permissions.

Could you hardcode it?

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.
@kklimonda kklimonda requested a review from paulfantom October 2, 2020 08:21
@paulfantom paulfantom merged commit a800094 into cloudalchemy:master Oct 2, 2020
@paulfantom
Copy link
Member

Thanks 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/jinja Templates area/vars Ansible variables used in role
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants