b96b89ef8b
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. |
||
---|---|---|
.. | ||
testdata | ||
archive.go | ||
backfill.go | ||
backfill_test.go | ||
debug.go | ||
main.go | ||
main_test.go | ||
rules.go | ||
rules_test.go | ||
sd.go | ||
sd_test.go | ||
tsdb.go | ||
unittest.go | ||
unittest_test.go |