You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to figure out how my Prometheus server can pull/scrape metrics from my OTel collector where exponential histogram metrics are instrumented by my app. Right now I see an error in the prometheusexporter component where it indicates that it can't handle exponential histogram conversion:
I understand this is because the exponential histograms/native histograms are not currently supported by the Prometheus text format. Native histograms in Prometheus are supported in the protobuf-based exposition format.
Is there a way the OTel collector can support conversion of exponential histograms to native histograms in the prometheusexporter so that I can continue to use the pull model? Or do I need to use prometheusremotewrite component or use Prometheus OTLP receiver i.e. push model?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to figure out how my Prometheus server can pull/scrape metrics from my OTel collector where exponential histogram metrics are instrumented by my app. Right now I see an error in the prometheusexporter component where it indicates that it can't handle exponential histogram conversion:
error [email protected]/accumulator.go:94 failed to translate metric {"kind": "exporter", "data_type": "metrics", "name": "prometheus", "data_type": "\u0004", "metric_name": "api.request.duration"}
I understand this is because the exponential histograms/native histograms are not currently supported by the Prometheus text format. Native histograms in Prometheus are supported in the protobuf-based exposition format.
Is there a way the OTel collector can support conversion of exponential histograms to native histograms in the prometheusexporter so that I can continue to use the pull model? Or do I need to use prometheusremotewrite component or use Prometheus OTLP receiver i.e. push model?
Beta Was this translation helpful? Give feedback.
All reactions