formula-prometheus-ng/prometheus/files/node_exporter.systemd.jinja
Ricardo Hernandez 702998db40 First release
2016-10-04 16:03:07 +01:00

18 lines
416 B
Django/Jinja

[Unit]
Description=Prometheus exporter for machine metrics
Documentation=https://github.com/prometheus/node_exporter
Wants=basic.target
After=basic.target network.target
[Service]
User=prometheus
Group=prometheus
EnvironmentFile=/etc/default/node_exporter
ExecStart=/usr/bin/node_exporter $ARGS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
RestartSec=42s
[Install]
WantedBy=multi-user.target