QuestionQ56

PromQL

If the vector selector foo[5m] contains 1 1 NaN 0, what does max_over_time(foo[5m]) return?

Explanation

max_over_time returns the maximum value among the samples in the specified interval. With numeric samples 1, 1, and 0, the maximum is 1; the intervening NaN does not replace an available numeric maximum.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!