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,