From 3048a88ae76c5d42d88726a4ba5ffe95964541e6 Mon Sep 17 00:00:00 2001 From: Goutham Date: Wed, 15 Nov 2023 15:52:18 +0100 Subject: [PATCH] Add suffixes Older version already did that. This upgrade needed manual opt-in Signed-off-by: Goutham --- storage/remote/write_handler.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/storage/remote/write_handler.go b/storage/remote/write_handler.go index a0dd3940e..9891c6aae 100644 --- a/storage/remote/write_handler.go +++ b/storage/remote/write_handler.go @@ -207,7 +207,9 @@ func (h *otlpWriteHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } - prwMetricsMap, errs := otlptranslator.FromMetrics(req.Metrics(), otlptranslator.Settings{}) + prwMetricsMap, errs := otlptranslator.FromMetrics(req.Metrics(), otlptranslator.Settings{ + AddMetricSuffixes: true, + }) if errs != nil { level.Warn(h.logger).Log("msg", "Error translating OTLP metrics to Prometheus write request", "err", errs) }