mirror of
https://github.com/prometheus/prometheus.git
synced 2025-10-07 13:41:03 +02:00
This adds a bucketed buffer pool to the scrapers so we don't have to allocate a new buffer on each scrape or hold it fixed to the scrape loop. The latter can consume significant amounts of unused memory, e.g. 4GB when scraping 2MB /metrics from 2000 targets.