How can you calculate the average request duration over the past 5 minutes from a histogram or summary named http_request_duration_seconds?
http_request_duration_seconds
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.
http_request_duration_seconds_sum
http_request_duration_seconds_count
Community Discussion