diff options
author | Fatih Degirmenci <fdegir@gmail.com> | 2020-04-06 13:32:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 15:32:02 +0200 |
commit | a78c5d3cd8d623efc1dc7800eb32c6b7ec954adb (patch) | |
tree | 2c47d43fdb1d680f3048ba88d80163500b53e9e2 | |
parent | da5972b5398cd67a8854e6b1ee6b861bfda5ef83 (diff) | |
download | prometheus_node_collector-a78c5d3cd8d623efc1dc7800eb32c6b7ec954adb.tar.bz2 prometheus_node_collector-a78c5d3cd8d623efc1dc7800eb32c6b7ec954adb.tar.xz prometheus_node_collector-a78c5d3cd8d623efc1dc7800eb32c6b7ec954adb.zip |
Update systemd example readme file (#1663)
The readme file does not mention the need to create a folder named
/var/lib/node_exporter/textfile_collector as a step. Lack of this
folder results errors for node_exporter service which is visible
in systemd status output. These errors possibly harmless but it is
not good to have them still.
$ sudo systemctl status node_exporter
--- snipped ---
Apr 04 14:51:35 ubuntu node_exporter[14713]: level=info ts=2020-04-04T14:51:35.584Z caller=node_exporter.go:190 msg="Listening on" address=:9100
Apr 04 15:05:34 ubuntu node_exporter[14876]: level=error ts=2020-04-04T15:05:34.464Z caller=textfile.go:197 collector=textfile msg="failed to read textfile collector directory" path=/var/lib/node_exporter/textfile_collector=textfile msg="failed to read textfile collector directory" path=/var/lib/node_exporter/textfile_collector err="open /var/lib/node_exporter/textfile_collector: no such file or directory"
--- snipped ---
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
-rw-r--r-- | examples/systemd/README.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/systemd/README.md b/examples/systemd/README.md index c1f011f..67039be 100644 --- a/examples/systemd/README.md +++ b/examples/systemd/README.md | |||
@@ -5,4 +5,5 @@ If you are using distribution packages or the copr repository, you don't need to | |||
5 | The unit file in this directory is to be put into `/etc/systemd/system`. | 5 | The unit file in this directory is to be put into `/etc/systemd/system`. |
6 | It needs a user named `node_exporter`, whose shell should be `/sbin/nologin` and should not have any special privileges. | 6 | It needs a user named `node_exporter`, whose shell should be `/sbin/nologin` and should not have any special privileges. |
7 | It needs a sysconfig file in `/etc/sysconfig/node_exporter`. | 7 | It needs a sysconfig file in `/etc/sysconfig/node_exporter`. |
8 | It needs a directory named `/var/lib/node_exporter/textfile_collector`, whose owner should be `node_exporter`:`node_exporter`. | ||
8 | A sample file can be found in `sysconfig.node_exporter`. | 9 | A sample file can be found in `sysconfig.node_exporter`. |