-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[prometheusexporter] Expose native histograms #33703
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hi, I tried it with the following config, and the native histograms are exposed just like they are exposed by my app:
Native histogram metrics exposed by my app: Native histogram metrics exposed by the prometheus exporter: Could you share your full setup? |
Are you sure these are native histograms? They look like regular ones to me. The required options are seemingly missing from your receiver config: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/prometheusreceiver/README.md#prometheus-native-histograms, so my guess is that you're falling back to the legacy ones here. EDIT: I added them to the original post, so it's easier to reproduce. |
Ah you are right, I was missing the scape_protocols, I can reproduce it now, thanks :) |
Component(s)
exporter/prometheus
What happened?
Description
Currently,
prometheusreceiver
supports native histograms, butprometheusexporter
cannot expose them.Steps to Reproduce
prometheusreceiver
by following the instructions here: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/f5d54da37ae664e1a0b6934a61d38f1afab5501f/receiver/prometheusreceiver/README.md#prometheus-native-histogramsExpected Result
prometheusexporter
should expose native histogramsActual Result
Logs via
debugexporter
:Collector version
v0.103.0
Environment information
N/A
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: