add prometheus export
This commit is contained in:
@ -1,15 +1,18 @@
|
||||
[Unit]
|
||||
Description=MAC-Watcher
|
||||
After=syslog.target
|
||||
Description=MAC Watcher - SNMP MAC table monitor with Prometheus exporter
|
||||
After=network.target
|
||||
Wants=network.target
|
||||
|
||||
[Service]
|
||||
RestartSec=2s
|
||||
Type=oneshot
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
WorkingDirectory=/opt/mac_watcher/
|
||||
WorkingDirectory=/opt/mac_watcher
|
||||
ExecStart=/usr/bin/python3 /opt/mac_watcher/mac_watcher.py
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user