opentelemetry-dotnet
                                
                                
                                
                                    opentelemetry-dotnet copied to clipboard
                            
                            
                            
                        Histogram aggregation should support Min Max
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#explicit-bucket-histogram-aggregation It should be collected by default, with the ability to turn off.
I'm interested in helping with this item with some guidance 🙂
Sure. I wanted to wait till https://github.com/open-telemetry/opentelemetry-proto/pull/279 is merged. But we don't have to wait really for that.
Removing this from 1.3.0 milestone and moving to 1.4.0. 1.3.0 is releasing shortly, and want to allow bake time for the new feature.
Hi, the previous PR seems to be closed due to inactivity. I am just wondering if I could take that over?
Hi, the previous PR seems to be closed due to inactivity. I am just wondering if I could take that over?
If @mic-max is not planning to work on it, then yes. @mic-max could you respond here?
Hi, the previous PR seems to be closed due to inactivity. I am just wondering if I could take that over?
If @mic-max is not planning to work on it, then yes. @mic-max could you respond here?
Yes, I plan to work on it this week, sorry I missed this notification. It should be a fairly simple fingers crossed rebase and touch up to the existing PR :)
Are there any docs on how to make this work with the PrometheusExporter? I can't figure out if there is anything special to do here or the exporter. The Metric.CreateHistogram<T> has no settings for buckets or inclusion of min/max.
Are there any docs on how to make this work with the PrometheusExporter? I can't figure out if there is anything special to do here or the exporter. The
Metric.CreateHistogram<T>has no settings for buckets or inclusion of min/max.
MinMax is not supported for PrometheusExporter. The spec does not mention how to convert Min/Max for Prometheus. https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/compatibility/prometheus_and_openmetrics.md#histograms-1
Thanks for clarification @cijothomas. Do you have any advice on how to proceed? I'm used to using Histogram data type for gauge type metrics like "latency" or "delay" where max data is important. The data itself is a gauge, but missing all the data in between the sampling points is undesirable.
It looks like with OpenTelemetry there's no datatype that would give me this data
Edit: To reference a statsd analog that I've used before: https://github.com/statsd/statsd/blob/master/docs/metric_types.md#timing This is perhaps not well named, as this type is useful for any "gauge-like" metric, where you are interested in all data, and not just the last at time of sampling.
I don't fully understand the issue you are facing. If the issue is Prometheus Exporter missing min/max, then this is just a matter of OTel spec clarifying how to map Min/Max to Prometheus model (likely a Prometheus Gauge). Please open an issue in the spec repo for this.
If it is something else, could you elaborate/clarify the exact ask?