itamae/cookbooks/prometheus/files/etc/systemd/system/snmp_exporter.service

11 lines
193 B
SYSTEMD

[Unit]
Description=SNMP Exporter
[Service]
User=root
Group=root
ExecStart=/usr/local/bin/snmp_exporter --config.file /etc/prometheus_exporters.d/snmp.yml
[Install]
WantedBy=multi-user.target