Browse Source

Add suffixes

Older version already did that. This upgrade needed manual opt-in

Signed-off-by: Goutham <gouthamve@gmail.com>
pull/13148/head
Goutham 1 year ago
parent
commit
3048a88ae7
No known key found for this signature in database
GPG Key ID: F1C217E8E9023CAD
  1. 4
      storage/remote/write_handler.go

4
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)
}

Loading…
Cancel
Save