From 35f29adae6eedcde6cbeed1ce01b11f74e56531f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 3 Apr 2022 15:04:32 +0200 Subject: [PATCH] prometheus: use empty name when there's no failing units (#63491) --- prometheus-entrouvert-exporter/prometheus-system-exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus-entrouvert-exporter/prometheus-system-exporter.py b/prometheus-entrouvert-exporter/prometheus-system-exporter.py index e2abeb1..c7bf581 100755 --- a/prometheus-entrouvert-exporter/prometheus-system-exporter.py +++ b/prometheus-entrouvert-exporter/prometheus-system-exporter.py @@ -236,7 +236,7 @@ def units(ctn): if name: eo_units.labels(ctn, name, "failed").set(n) else: - eo_units.labels(ctn, "failed").set(n) + eo_units.labels(ctn, "", "failed").set(n) def run_in_machines(ctn):