prometheus/scrape
Filip Petkovski 10a82f87fd
Enable reusing memory when converting between histogram types
The 'ToFloat' method on integer histograms currently allocates new memory
each time it is called.

This commit adds an optional *FloatHistogram parameter that can be used
to reuse span and bucket slices. It is up to the caller to make sure the
input float histogram is not used anymore after the call.

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
2023-12-08 10:22:59 +01:00
..
testdata Re-generate test cert to fix test_windows test failures 2022-03-17 19:37:18 +01:00
clientprotobuf.go Update according to code review 2023-05-05 02:33:00 +08:00
helpers_test.go scrape: Refactor names of float samples 2023-07-13 14:27:51 +02:00
manager.go Scraping: share buffer pool across all scrapes 2023-11-23 10:23:34 +00:00
manager_test.go Scrape metrics can now be registered with a non-default registry. 2023-10-11 16:19:00 +01:00
metrics.go Scrape metrics can now be registered with a non-default registry. 2023-10-11 16:19:00 +01:00
scrape.go Merge pull request #13184 from bboreham/exemplar-sort 2023-11-25 09:34:48 +01:00
scrape_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
target.go optimize the logic of break the loop of reducing resolution 2023-11-21 16:56:56 +08:00
target_test.go Enable reusing memory when converting between histogram types 2023-12-08 10:22:59 +01:00