QuestionQ56Verified/PromQLCopy linkReport a problemAsk AstroTutorSave questionIf the vector selector foo[5m] contains 1 1 NaN 0, what does max_over_time(foo[5m]) return?A1BIt errors out.CNaNDNo answer.Show AnswerAnswerExplanationmax_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 morePrometheus query functionsShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion