mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-08-20 18:33:52 -07:00
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.