-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 :) |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Blocked by prometheus/client_golang#1617. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This is mostly unblocked after prometheus/client_golang#1654. We just need to wait for a release. Exemplars are not yet supported |
Component(s)
exporter/prometheus
What happened?
Description
Currently,
prometheusreceiver
supports native histograms, butprometheusexporter
cannot expose them (because Prometheus cannot expose native histograms in text format yet).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: