prometheus/scrape
Bryan Boreham b987afa7ef labels: simplify call to get Labels from Builder
It took a `Labels` where the memory could be re-used, but in practice
this hardly ever benefitted. Especially after converting `relabel.Process`
to `relabel.ProcessBuilder`.

Comparing the parameter to `nil` was a bug; `EmptyLabels` is not `nil`
so the slice was reallocated multiple times by `append`.

Lastly `Builder.Labels()` now estimates that the final size will depend
on labels added and deleted.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-03-22 17:05:20 +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 Add include scrape configs 2023-03-06 23:35:39 +01:00
manager_test.go Merge pull request #12048 from bboreham/faster-targets 2023-03-09 11:10:01 +00:00
scrape.go labels: simplify call to get Labels from Builder 2023-03-22 17:05:20 +00:00
scrape_test.go Update our own dependencies, support proxy from env 2023-03-08 12:00:17 +01:00
target.go labels: simplify call to get Labels from Builder 2023-03-22 17:05:20 +00:00
target_test.go labels: simplify call to get Labels from Builder 2023-03-22 17:05:20 +00:00