snmp_exporter: Initial version of role
This commit is contained in:
parent
47ee78221f
commit
8a7159c0c4
5 changed files with 134 additions and 0 deletions
14
roles/snmp_exporter/files/snmp_exporter.service
Normal file
14
roles/snmp_exporter/files/snmp_exporter.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Prometheus SNMP Exporter
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=snmp
|
||||
Group=snmp
|
||||
ExecStart=/usr/local/bin/snmp_exporter --config.file=/etc/snmp_exporter/snmp.yml --web.config.file=/etc/snmp_exporter/web-config.yml
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue