forked from percona/node_exporter
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mention copr yum repository, add systemd unit (prometheus#529)
* add systemd unit as example * mention community yum repo fixes prometheus#498 * rename textfile collector dir
- Loading branch information
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
OPTIONS="-collector.textfile.directory /var/lib/node_exporter/textfile_collector" |