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

OTLP Exporter only sets min and max for Summary Data Point #933

Closed
davidwitten opened this issue Jul 10, 2020 · 3 comments
Closed

OTLP Exporter only sets min and max for Summary Data Point #933

davidwitten opened this issue Jul 10, 2020 · 3 comments
Assignees
Labels
area:metrics Part of OpenTelemetry Metrics enhancement New feature or request pkg:exporter:otlp Related to the OTLP exporter package question Further information is requested

Comments

@davidwitten
Copy link
Member

Is your feature request related to a problem? Please describe.

SummaryDataPoints: []*metricpb.SummaryDataPoint{
{
Labels: stringKeyValues(labels.Iter()),
Count: uint64(count),
Sum: sum.CoerceToFloat64(numKind),
PercentileValues: []*metricpb.SummaryDataPoint_ValueAtPercentile{
{
Percentile: 0.0,
Value: min.CoerceToFloat64(numKind),
},
{
Percentile: 100.0,
Value: max.CoerceToFloat64(numKind),
},
},
StartTimeUnixNano: uint64(record.StartTime().UnixNano()),
TimeUnixNano: uint64(record.EndTime().UnixNano()),
},
},
}, nil
}

I noticed that Summary Data Points are only created from MinMaxSumCountAggregators, where there are only two percentiles set: 0% as the minimum, and 100% as the maximum. This seems like it doesn't take full advantage of the utility of the Summary Data Point, which allows for a list of percentiles and their values.

Describe the solution you'd like

Are there plans for an aggregator similar to the HistogramAggregator that will allow for a full Summary data point (e.g. setting the 10th percentile, 30th percentile, 50th percentile, etc.) ?

@MrAlias MrAlias added area: exporter enhancement New feature or request question Further information is requested labels Jul 10, 2020
@MrAlias
Copy link
Contributor

MrAlias commented Jul 10, 2020

I noticed that Summary Data Points are only created from MinMaxSumCountAggregators, where there are only two percentiles set: 0% as the minimum, and 100% as the maximum. This seems like it doesn't take full advantage of the utility of the Summary Data Point, which allows for a list of percentiles and their values.

This use of the SummaryDataPoint is a work around to the fact that there is no first class support of the MinMaxSumCount aggregation in the OTLP. Something that is in progress to change (open-telemetry/opentelemetry-proto#162), and the new transport fields will be used for this data once a solution is released.

Are there plans for an aggregator similar to the HistogramAggregator that will allow for a full Summary data point (e.g. setting the 10th percentile, 30th percentile, 50th percentile, etc.) ?

There is no plan currently. Precomputed percentiles have a limited use in that they do not support any aggregation and are quite inflexible. Especially when evaluated against Histograms themselves which offer data that arbitrary percentiles can be computed from at a later time (as well as other useful data analysis methods).

That said, we try to value user requests. If you are an end user that has a need for precomputed percentiles we would like to hear about that usecase and why you prefer it.

If ultimately precomputed percentiles don't make it into the standard aggregators, it is expected to build out the extensibility of our aggregator system. It is still in the design stage, but the idea is an end user can provide their own Aggregator, say one that compute percentiles, and integrate it into the telemetry system.

@jmacd
Copy link
Contributor

jmacd commented Jul 16, 2020

I think we should support configurable percentiles for OTLP summary data points. The array, sketch, and histogram aggregators can all produce these percentiles, but I don't think these should be included by default (i.e., MMSC is working).

(Now we need a configurable SDK...)

@MrAlias MrAlias added this to the RC1 milestone Sep 25, 2020
@MrAlias MrAlias added release:required-for-ga help wanted Extra attention is needed labels Oct 1, 2020
@MrAlias MrAlias added the area:metrics Part of OpenTelemetry Metrics label Feb 16, 2021
@MrAlias MrAlias removed this from the RC1 milestone Feb 16, 2021
@MrAlias MrAlias added pkg:exporter:otlp Related to the OTLP exporter package and removed help wanted Extra attention is needed pkg:exporter labels Apr 6, 2021
@MadVikingGod MadVikingGod self-assigned this Oct 26, 2023
@MadVikingGod
Copy link
Contributor

This was an issue with an alpha version of the metrics. Currently, there isn't a way for the SDK to generate summary data points; they can only be made via a producer.

I am closing this issue, but if anyone feels that there is more work to be done, please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:metrics Part of OpenTelemetry Metrics enhancement New feature or request pkg:exporter:otlp Related to the OTLP exporter package question Further information is requested
Projects
No open projects
Development

No branches or pull requests

4 participants