[Unit] Description=Node Exporter [Service] ExecStartPre=/bin/bash -c 'test -f /usr/local/bin/node_exporter || curl -sSLf https://github.com/prometheus/node_exporter/releases/download/v1.8.2/node_exporter-1.8.2.linux-$(arch | sed -e "s/x86_64/amd64/" -e "s/aarch64/arm64/").tar.gz | tar xvz -C /usr/local/bin/ --strip-components=1 --wildcards "*/node_exporter"' Environment=OPTIONS=--web.listen-address=127.0.0.1:9100 EnvironmentFile=-/etc/default/node_exporter ExecStart=/usr/local/bin/node_exporter $OPTIONS [Install] WantedBy=multi-user.target