prometheus/scrape
Bryan Boreham b96b89ef8b
Merge pull request #12048 from bboreham/faster-targets
Scraping targets are synced by creating the full set, then adding/removing any which have changed.
This PR speeds up the process of creating the full set.

I added a benchmark for `TargetsFromGroup`; it uses configuration from a typical Kubernetes SD.

The crux of the change is to do relabeling inside labels.Builder instead of converting to labels.Labels and back again for every rule. The change is broken into several commits for easier review.

This is a breaking change to `scrape.PopulateLabels()`, but `relabel.Process` is left as-is, with a new `relabel.ProcessBuilder` option.
2023-03-09 11:10:01 +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 scrape: re-use memory in TargetsFromGroup 2023-03-07 17:21:37 +00:00
scrape_test.go Update our own dependencies, support proxy from env 2023-03-08 12:00:17 +01: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