prometheus: use empty name when there's no failing units (#63491)

This commit is contained in:
Frédéric Péters 2022-04-03 15:04:32 +02:00
parent f305d20125
commit 35f29adae6
1 changed files with 1 additions and 1 deletions

View File

@ -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):