-
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
prometheus exporter precision error with histogram bucket #32514
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
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 issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
exporter/prometheus
Describe the issue you're reporting
Overview
When leveraging the prometheus exporter from the otel-collector-contrib project, the values for the distribution buckets are getting corrupted/improper precision on some of the buckets when viewing the metrics in prometheus.
Setup
management.metrics.distribution.slo[http.server.requests]: 10ms,20ms,30ms,40ms,50ms,60ms,70ms,80ms,90ms,100ms,200ms,300ms,400ms,500ms,600ms,700ms,800ms,900ms,1000ms,2000ms,3000ms,4000ms,5000ms,6000ms,7000ms,8000ms,9000ms,10000ms
Using
docker.io/otel/opentelemetry-collector-contrib:0.97.0
Relevant otel-config.yaml:
When hitting the exposed prometheus metric scrape endpoint, some of the
le
label values for thehttp_server_requests_seconds_bucket
have unexpected extra precision added to them.Expected Results
le="0.030000000000000002"
should bele="0.03"
le="0.060000000000000005"
should bele="0.06"
le="0.09000000000000001"
should bele="0.09"
le="0.30000000000000004"
should bele="0.3"
le="0.6000000000000001"
should bele="0.6"
le="0.7000000000000001"
should bele="0.7"
Otel Collector Debug Output
Relevant output from verbose debug logging (the ExplicitBounds values appear to be correct here):
The text was updated successfully, but these errors were encountered: