add prometheus export

This commit is contained in:
2026-03-29 22:10:04 +02:00
parent 62445b426a
commit f6047a0b6e
6 changed files with 572 additions and 261 deletions

View File

@ -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