initial commit: geekworm x1208 ups prometheus exporter

This commit is contained in:
2026-04-17 20:30:34 +02:00
commit aae6cee886
11 changed files with 389 additions and 0 deletions
+15
View File
@@ -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
+11
View File
@@ -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