QuestionQ4

PromQL

How can you calculate the average request duration over the past 5 minutes from a histogram or summary named http_request_duration_seconds?

Explanation

A summary or classic histogram exposes the cumulative sum of observed durations as http_request_duration_seconds_sum and the number of observations as http_request_duration_seconds_count. Dividing the five-minute rate of the sum by the five-minute rate of the count yields the average request duration during that interval.

Learn more

Community Discussion

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