mirror of
https://github.com/prometheus/prometheus.git
synced 2025-10-05 04:31:16 +02:00
This adds a proper duration based lookback buffer for series iterators to allow advancing sequentially while remaining able to calculate time aggregating functions such as `rate` backwards. It uses an array ring buffer to minimize heap allocations for potentially hundreds of thousands of series for a single query.