Mention copr yum repository, add systemd unit (#529)

* add systemd unit as example

* mention community yum repo

fixes #498

* rename textfile collector dir
This commit is contained in:
Tobias Florek 2017-04-19 18:54:15 +02:00 committed by Johannes 'fish' Ziemke
commit 2a38b57a2a
4 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,8 @@
# Systemd Unit
If you are using distribution packages or the copr repository, you don't need to deal with these files!
The unit file in this directory is to be put into `/etc/systemd/system`.
It needs a user named `node_exporter`, whose shell should be `/sbin/nologin` and should not have any special privileges.
It needs a sysconfig file in `/etc/sysconfig/node_exporter`.
A sample file can be found in `sysconfig.node_exporter`.

View file

@ -0,0 +1,10 @@
[Unit]
Description=Node Exporter
[Service]
User=node_exporter
EnvironmentFile=/etc/sysconfig/node_exporter
ExecStart=/usr/sbin/node_exporter $OPTIONS
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1 @@
OPTIONS="-collector.textfile.directory /var/lib/node_exporter/textfile_collector"