Skip to content
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

Issues or mis-use of histogram metrics #3344

Closed
xcheng85 opened this issue Oct 17, 2022 · 3 comments
Closed

Issues or mis-use of histogram metrics #3344

xcheng85 opened this issue Oct 17, 2022 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists pkg:exporter:prometheus Related to the Prometheus exporter package

Comments

@xcheng85
Copy link

I created a custom histogram bucket:

ExplicitBucketHistogram{
Boundaries: []float64{0.5, 1, 2.5, 5, 10, 20, 40, 60, 80, 120, 160, 240, 320, 480, 640},
}),
and then I add a histogram metric data point: 200

I am expecting to see 5 buckets to have counter: 1 but only 2 buckets instead. Could you please help ?

unity_event_1_bucket{namespace="evd-cia3dviz",le="240"} 1
unity_event_1_bucket{namespace="evd-cia3dviz",le="320"} 0
unity_event_1_bucket{namespace="evd-cia3dviz",le="480"} 0
unity_event_1_bucket{namespace="evd-cia3dviz",le="640"} 0
unity_event_1_bucket{namespace="evd-cia3dviz",le="+Inf"} 1

version:

go.opentelemetry.io/otel v1.10.0
go.opentelemetry.io/otel/metric v0.32.1
go.opentelemetry.io/otel/sdk v1.10.0
go.opentelemetry.io/otel/sdk/metric v0.32.1

go.opentelemetry.io/otel/exporters/prometheus v0.32.1
@MrAlias
Copy link
Contributor

MrAlias commented Oct 17, 2022

Duplicate of #3281

This fix will be included in the next release.

@MrAlias MrAlias closed this as completed Oct 17, 2022
@MrAlias MrAlias added bug Something isn't working duplicate This issue or pull request already exists pkg:exporter:prometheus Related to the Prometheus exporter package labels Oct 17, 2022
@xcheng85
Copy link
Author

Thank you. Would you please inform the schedule of next release ?

@MrAlias MrAlias added this to the Metric v0.33.0 milestone Oct 17, 2022
@MrAlias
Copy link
Contributor

MrAlias commented Oct 17, 2022

Thank you. Would you please inform the schedule of next release ?

We don't currently have a date, but you can track its progress here: https://github.com/open-telemetry/opentelemetry-go/milestone/31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists pkg:exporter:prometheus Related to the Prometheus exporter package
Projects
None yet
Development

No branches or pull requests

2 participants