Skip to content

Instantly share code, notes, and snippets.

@varuzhnikov
Created July 8, 2025 09:50
Show Gist options
  • Save varuzhnikov/17314f164874766c32510fa461bcbf4e to your computer and use it in GitHub Desktop.
Save varuzhnikov/17314f164874766c32510fa461bcbf4e to your computer and use it in GitHub Desktop.
Systemd service for smartctl_exporter
[Unit]
Description=smartctl_exporter for Prometheus
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/smartctl_exporter \
--smartctl.path=/usr/sbin/smartctl \
--smartctl.device=/dev/nvme0n1 \
--smartctl.device=/dev/nvme1n1 \
--web.listen-address=:9633
Restart=on-failure
User=root
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment