From bf5e3774cc64930a4b844394b82b8f1891825339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20H=C3=B6rsken?= Date: Thu, 5 May 2022 12:35:08 +0200 Subject: [PATCH] app/vmctl: fix empty/skipped labels after db label (#2536) Do not assume the db label to be the last one and also make sure we are not skipping it and everything afterwards. Breaking the loop would cause following labels to be empty. --- app/vmctl/influx.go | 1 - 1 file changed, 1 deletion(-) diff --git a/app/vmctl/influx.go b/app/vmctl/influx.go index bcefc947d..55da3d4e1 100644 --- a/app/vmctl/influx.go +++ b/app/vmctl/influx.go @@ -120,7 +120,6 @@ func (ip *influxProcessor) do(s *influx.Series) error { for i, lp := range s.LabelPairs { if lp.Name == dbLabel { containsDBLabel = true - break } labels[i] = vm.LabelPair{ Name: lp.Name,