initial commit: geekworm x1208 ups prometheus exporter
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Geekworm X1208 UPS metrics exporter (one-shot)
|
||||
After=local-fs.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/x1208-exporter
|
||||
Nice=10
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=/var/lib/node-exporter/textfiles
|
||||
ProtectHome=true
|
||||
PrivateTmp=true
|
||||
NoNewPrivileges=true
|
||||
DeviceAllow=/dev/i2c-1 rw
|
||||
DeviceAllow=/dev/gpiochip0 rw
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Run X1208 UPS metrics exporter every 30s
|
||||
|
||||
[Timer]
|
||||
OnBootSec=30s
|
||||
OnUnitActiveSec=30s
|
||||
AccuracySec=1s
|
||||
Unit=x1208-exporter.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user