Hi Brian,

Are you getting any error when you start it manually as the user?
/opt/node_exporter/node_exporter
--collector.textfile.directory=/var/lib/node_exporter --collector.systemd
--collector.ntp


Thanks n Regards,
Chalapathi

On Wed, Nov 10, 2021 at 12:39 AM Brian Candler <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/prometheus-users/88690113-44bd-4337-a56d-b2a771e78434n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CABXnQPt2SE%2B91XE_nXdWdeoc4-%2B-tnFJz3gXBb7VJfE8UT%2BR0w%40mail.gmail.com.

Reply via email to