diff --git a/ungleich-ups/README.org b/ungleich-ups/README.org index 660639b..3cfa932 100644 --- a/ungleich-ups/README.org +++ b/ungleich-ups/README.org @@ -3,6 +3,14 @@ - UID of nut seems to be dynamic, might even be different on different hosts - yes, GID differs on outside hosts. +* Prometheus exporters + - ghcr.io/druggeri/nut_exporter:3.3.0 + - port 9199 + - last update 4 months ago + - focus on this one first + - hon95/prometheus-nut-exporter:1 + - port 9995 + - last image 4 years ago * 0.1.2, 2026-09-10 - Remove openrc, start nut directly (openrc does not exist by default anyway) diff --git a/ungleich-ups/daemonset.yaml b/ungleich-ups/daemonset.yaml index 52e7e45..66655ad 100644 --- a/ungleich-ups/daemonset.yaml +++ b/ungleich-ups/daemonset.yaml @@ -32,6 +32,11 @@ spec: mountPath: /dev/bus/usb - name: dev mountPath: /dev + - name: nut-exporter + image: ghcr.io/druggeri/nut_exporter:3.3.0 + ports: + - name: http + containerPort: 9199 volumes: - name: usb-devices hostPath: diff --git a/ungleich-ups/entrypoint.sh b/ungleich-ups/entrypoint.sh index a7b9a85..91b8b12 100755 --- a/ungleich-ups/entrypoint.sh +++ b/ungleich-ups/entrypoint.sh @@ -2,7 +2,7 @@ # 2026-09-10, Nico Schottelius, Risch/Rotkreuz # scan for ups & log to stdout -nut-scanner -U 2>/dev/null | tee /etc/nut/ups.conf +nut-scanner -UUU 2>/dev/null | tee /etc/nut/ups.conf /usr/sbin/upsdrvctl start