QuestionQ41Verified/PromQLCopy linkReport a problemAsk AstroTutorSave questionWhich expression computes the average uptime of targets during the previous hour?Aavg(up-lh)Bavg_over_time(up[lh])Caverage_over_time(up[lh])Davg(up[lh])Show AnswerAnswerExplanationavg_over_time() calculates the average of all samples in a specified range vector. Applying it to up[1h] averages each target’s up samples from the preceding hour.Learn morePrometheus query functionsShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion