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

Commit e863115

Browse files
jillropaulfantom
authored andcommitted
make textfile dir writable by node-exp group (#56)
1 parent 3948bc6 commit e863115

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
2626
| `node_exporter_web_listen_address` | "0.0.0.0:9100" | Address on which node exporter will listen |
2727
| `node_exporter_enabled_collectors` | [ systemd ] | List of additionally enabled collectors. It adds collectors to [those enabled by default](https://github.com/prometheus/node_exporter#enabled-by-default) |
2828
| `node_exporter_disabled_collectors` | [] | List of disabled collectors. By default node_exporter disables collectors listed [here](https://github.com/prometheus/node_exporter#disabled-by-default). |
29+
| `node_exporter_textfile_dir` | "/var/lib/node_exporter" | Directory used by the [Textfile Collector](https://github.com/prometheus/node_exporter#textfile-collector). To get permissions to write metrics in this directory, users must be in `node-exp` system group.
2930

3031
## Example
3132

tasks/configure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
owner: "{{ node_exporter_system_user }}"
77
group: "{{ node_exporter_system_group }}"
88
recurse: true
9-
mode: 0755
9+
mode: 0775
1010
when: node_exporter_textfile_dir != ""
1111

1212
- name: Node exporter can read anything (omit file permissions)

0 commit comments

Comments
 (0)