From 6f941e352664348e75e7e0fd77fd44df049e1934 Mon Sep 17 00:00:00 2001
From: Eugene Ma <edma2@users.noreply.github.com>
Date: Thu, 31 Oct 2024 22:09:53 -0700
Subject: [PATCH] fix v2 remote write

---
 pkg/translator/prometheusremotewrite/number_data_points_v2.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/translator/prometheusremotewrite/number_data_points_v2.go b/pkg/translator/prometheusremotewrite/number_data_points_v2.go
index d2c11447a841..3466ab065332 100644
--- a/pkg/translator/prometheusremotewrite/number_data_points_v2.go
+++ b/pkg/translator/prometheusremotewrite/number_data_points_v2.go
@@ -18,7 +18,7 @@ func (c *prometheusConverterV2) addGaugeNumberDataPoints(dataPoints pmetric.Numb
 	for x := 0; x < dataPoints.Len(); x++ {
 		pt := dataPoints.At(x)
 
-		labels := createAttributes(
+		labels := NewPrometheusConverter().createAttributes(
 			resource,
 			pt.Attributes(),
 			settings.ExternalLabels,