mirror of
https://github.com/prometheus/node_exporter
synced 2024-12-18 04:15:06 +00:00
715a2ed674
node_exporter has reasonable defaults so it is able to start without explicit config. Such a setup is common in /usr/-only images where /etc/ is an empty tmpfs upon boot. Signed-off-by: Nils K <24257556+septatrix@users.noreply.github.com> |
||
---|---|---|
.. | ||
node_exporter.service | ||
node_exporter.socket | ||
README.md | ||
sysconfig.node_exporter |
Systemd Unit
If you are using distribution packages or the copr repository, you don't need to deal with these files!
The unit files (*.service
and *.socket
) in this directory are 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
.
It needs a directory named /var/lib/node_exporter/textfile_collector
, whose owner should be node_exporter
:node_exporter
.
A sample file can be found in sysconfig.node_exporter
.