1
0
mirror of https://github.com/prometheus/prometheus synced 2025-03-20 18:26:49 +00:00

Merge pull request from charleskorn/charleskorn/quantile_over_time-annotation

promql: emit correct annotation in `quantile_over_time` when run over a range with histograms and floats
This commit is contained in:
Björn Rabenstein 2025-02-20 22:49:30 +01:00 committed by GitHub
commit fcc8e49d65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -922,7 +922,7 @@ func funcQuantileOverTime(vals []parser.Value, args parser.Expressions, enh *Eva
}
if len(el.Histograms) > 0 {
metricName := el.Metric.Get(labels.MetricName)
annos.Add(annotations.NewHistogramIgnoredInAggregationInfo(metricName, args[0].PositionRange()))
annos.Add(annotations.NewHistogramIgnoredInMixedRangeInfo(metricName, args[0].PositionRange()))
}
values := make(vectorByValueHeap, 0, len(el.Floats))
for _, f := range el.Floats {