Skip to content

Instantly share code, notes, and snippets.

@ipl31
Last active June 6, 2020 15:21
Show Gist options
  • Save ipl31/1f6a00f40448c9e5d78d49c02a7f1caa to your computer and use it in GitHub Desktop.
Save ipl31/1f6a00f40448c9e5d78d49c02a7f1caa to your computer and use it in GitHub Desktop.
Raspberry Pi Node Exporter Unit File
[Unit]
Description=Node Exporter
[Service]
# Provide a text file location for https://github.com/fahlke/raspberrypi_exporter data with the
# --collector.textfile.directory parameter.
ExecStart=/usr/local/bin/node_exporter --collector.textfile.directory /var/lib/node_exporter/textfile_collector
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment