mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 17:13:22 +00:00
5bed8af4cb
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. |
||
---|---|---|
.. | ||
testdata | ||
helpers_test.go | ||
scrape_test.go | ||
scrape.go | ||
target_test.go | ||
target.go | ||
targetmanager_test.go | ||
targetmanager.go |