prometheus/scrape
Bryan Boreham f4fd9b0d68 scrape: re-use memory in TargetsFromGroup
Common service discovery mechanisms such as Kubernetes can generate a
lot of target groups, so this function was allocating a lot of memory
which then immediately became garbage. Re-using the structures across
an entire Sync saves effort.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-03-07 17:21:37 +00:00
..
testdata Re-generate test cert to fix test_windows test failures 2022-03-17 19:37:18 +01:00
helpers_test.go Support FloatHistogram in TSDB (#11522) 2022-12-28 14:25:07 +05:30
manager.go Show individual scrape pools on /targets page (#11142) 2022-12-23 11:55:08 +01:00
manager_test.go scrape: make TargetsFromGroup work with Builder not []Label 2023-03-07 17:21:37 +00:00
scrape.go scrape: re-use memory in TargetsFromGroup 2023-03-07 17:21:37 +00:00
scrape_test.go scrape: remove unsafe code 2022-12-20 17:26:43 +00:00
target.go scrape: re-use memory in TargetsFromGroup 2023-03-07 17:21:37 +00:00
target_test.go scrape: re-use memory in TargetsFromGroup 2023-03-07 17:21:37 +00:00