Here is the node_exporter.service that I use: -------- [Unit] Description=Prometheus Node Exporter Documentation=https://github.com/prometheus/node_exporter After=network-online.target
[Service] User=xxxxx EnvironmentFile=/etc/default/node_exporter ExecStart=/opt/node_exporter/node_exporter $OPTIONS Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target -------- and /etc/default/node_exporter: -------- OPTIONS='--collector.textfile.directory=/var/lib/node_exporter --collector.systemd --collector.ntp' -------- It doesn't have any problem with premature shutdown. -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/88690113-44bd-4337-a56d-b2a771e78434n%40googlegroups.com.

