diff --git a/pkg/receive/handler_otlp.go b/pkg/receive/handler_otlp.go index 7b3eba8cc0..434433f75c 100644 --- a/pkg/receive/handler_otlp.go +++ b/pkg/receive/handler_otlp.go @@ -159,7 +159,7 @@ func (h *Handler) convertToPrometheusFormat(ctx context.Context, pmetrics pmetri converter := otlptranslator.NewPrometheusConverter() settings := otlptranslator.Settings{ AddMetricSuffixes: true, - DisableTargetInfo: h.options.OtlpEnableTargetInfo, + DisableTargetInfo: !h.options.OtlpEnableTargetInfo, PromoteResourceAttributes: h.options.OtlpResourceAttributes, }