mirror of
https://github.com/prometheus/prometheus.git
synced 2025-11-18 17:21:02 +01:00
Merge pull request #16018 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:
commit
fcc8e49d65
@ -922,7 +922,7 @@ func funcQuantileOverTime(vals []parser.Value, args parser.Expressions, enh *Eva
|
|||||||
}
|
}
|
||||||
if len(el.Histograms) > 0 {
|
if len(el.Histograms) > 0 {
|
||||||
metricName := el.Metric.Get(labels.MetricName)
|
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))
|
values := make(vectorByValueHeap, 0, len(el.Floats))
|
||||||
for _, f := range el.Floats {
|
for _, f := range el.Floats {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user