Closed MichaHoffmann closed 4 months ago
cc @pedro-stanaka
Which upstream commit is it?
For compatibility with prometheus we need to introduce a preprocessor to make scalar arguments in aggregations step invariant
Does it mean this query is not valid anymore? topk(scalar(sum(some_metric)), another_metric)
Which upstream commit is it?
For compatibility with prometheus we need to introduce a preprocessor to make scalar arguments in aggregations step invariant
Does it mean this query is not valid anymore?
topk(scalar(sum(some_metric)), another_metric)
It's valid but its treated as step invariant I think. As in the parameter value will be the value of the sum at the start of the range.
Edit: likely https://github.com/prometheus/prometheus/pull/13744
For compatibility with prometheus we need to introduce a preprocessor to make scalar arguments in aggregations step invariant. Functions like
quantile_over_time
are exempt from that so far so we dont need to preprocess them as of now.