Skip to content

Instantly share code, notes, and snippets.

@bilalatli
Last active January 25, 2021 12:55
Show Gist options
  • Select an option

  • Save bilalatli/759fe1a013700f0d050e6465a52ed92f to your computer and use it in GitHub Desktop.

Select an option

Save bilalatli/759fe1a013700f0d050e6465a52ed92f to your computer and use it in GitHub Desktop.
Prometheus node exporter systemd service file
[Unit]
Description=Prometheus exporter for machine metrics
Documentation=https://github.com/prometheus/node_exporter
[Service]
Restart=always
User=node_exporter
#EnvironmentFile=/etc/default/prometheus-node-exporter
ExecStart=/usr/local/bin/prometheus-node-exporter $ARGS
ExecReload=/bin/kill -HUP $MAINPID
TimeoutStopSec=20s
SendSIGKILL=no
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment