# Maximum and Minimum on Request Duration (Histograms))

**URL:** <https://discuss.prometheus.io/t/maximum-and-minimum-on-request-duration-histograms/3414>\
**Category:** PromQL\
**Created:** [June 18, 2025, 1:12pm UTC](https://discuss.prometheus.io/t/maximum-and-minimum-on-request-duration-histograms/3414 "2025-06-18T13:12:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tejaswini](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/tejaswini/32/137_2.png) [@Tejaswini](https://discuss.prometheus.io/u/Tejaswini)\
**Post date:** [June 18, 2025, 1:12pm UTC](https://discuss.prometheus.io/t/maximum-and-minimum-on-request-duration-histograms/3414/1 "2025-06-18T13:12:34Z")

</div>

Hi,

I’m using Prometheus to monitor request durations via a histogram metric, e.g., `http_request_duration_seconds_bucket`. I would like to query:

- The **minimum** time taken by a request
- The **maximum** time taken by a request

…over a given time range (say, the last 1h or 24h).

I understand that histogram buckets give cumulative counts of requests below certain durations, but I’m not sure how to extract the actual min or max values of request durations during a time window.

Is this possible directly via PromQL? Or is there a recommended workaround (e.g., recording rules, external processing, or using `histogram_quantile()` in a specific way)?

Thanks in advance for any guidance!

Br,  
Teja
