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