From 24f7a3b1cd304f6a9e2bd0a1d2bb2326ee4f4067 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 16 Sep 2026 09:15:44 +0200 Subject: [PATCH] [ungleich-ups] add nut_exporter to demo daemonset for --- ungleich-ups/README.org | 8 ++++++++ ungleich-ups/daemonset.yaml | 5 +++++ ungleich-ups/entrypoint.sh | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) 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