From c914e4dacebc3c8a846634da904ce1bac69754b2 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 13 Oct 2022 10:18:57 +0300 Subject: [PATCH] app/vmagent/remotewrite: typo fix after 50f5eae0e0358e6b7e80066cf3926fcdc9555e9f --- app/vmagent/remotewrite/relabel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmagent/remotewrite/relabel.go b/app/vmagent/remotewrite/relabel.go index 997e9e42e..f93956977 100644 --- a/app/vmagent/remotewrite/relabel.go +++ b/app/vmagent/remotewrite/relabel.go @@ -124,7 +124,7 @@ func (rctx *relabelCtx) applyRelabeling(tss []prompbmarshal.TimeSeries, extraLab } } labels = pcs.Apply(labels, labelsLen) - labels = promrelabel.FinalizeLabels(labels[:0], labels) + labels = promrelabel.FinalizeLabels(labels[:labelsLen], labels) if len(labels) == labelsLen { // Drop the current time series, since relabeling removed all the labels. continue