Files
ansible-config/roles/node_exporter/templates/node_exporter.service.j2

31 lines
598 B
Plaintext
Raw Normal View History

[Unit]
Description=Node Exporter
After=network.target
Wants=network.target
[Service]
User=node_exporter
Group=node_exporter
Type=simple
ExecStart=/usr/local/bin/node_exporter \
--collector.cpu \
--collector.diskstats \
--collector.filesystem \
--collector.loadavg \
--collector.meminfo \
--collector.netdev \
--collector.netstat \
--collector.stat \
--collector.time \
--collector.uname \
--collector.vmstat \
--collector.systemd \
--collector.textfile \
--web.listen-address=:{{ node_exporter_port }}
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target