File: //etc/systemd/system/multi-user.target.wants/smartctl_exporter.service
#
# Ansible managed
#
[Unit]
Description=Prometheus Smartctl Exporter
After=network-online.target
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/local/bin/smartctl_exporter \
'--smartctl.path=/usr/sbin/smartctl' \
'--smartctl.interval=60s' \
'--smartctl.rescan=10m' \
'--smartctl.device-exclude=' \
'--smartctl.device-include=' \
'--web.listen-address=0.0.0.0:9633' \
'--web.telemetry-path=/metrics' \
'--log.level=error' \
'--log.format=logfmt'
SyslogIdentifier=smartctl_exporter
Restart=always
RestartSec=1
StartLimitInterval=0
ProtectHome=yes
NoNewPrivileges=yes
ProtectSystem=strict
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=yes
[Install]
WantedBy=multi-user.target