prometheus/cmd/promtool
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 Fix promtool check config not erroring properly on failures (#10952) 2022-07-01 14:38:49 +02:00
archive.go refactor (package cmd): move from github.com/pkg/errors to 'errors' and 'fmt' packages (#10733) 2022-05-24 16:58:59 +10:00
backfill.go refactor (package cmd): move from github.com/pkg/errors to 'errors' and 'fmt' packages (#10733) 2022-05-24 16:58:59 +10:00
backfill_test.go storage: allow re-use of iterators 2022-12-15 18:32:45 +00:00
debug.go refactor (package cmd): move from github.com/pkg/errors to 'errors' and 'fmt' packages (#10733) 2022-05-24 16:58:59 +10:00
main.go Merge pull request #12048 from bboreham/faster-targets 2023-03-09 11:10:01 +00:00
main_test.go feat: add promtool http config support 2023-02-10 14:53:20 +01:00
rules.go Update package cmd/promtool for new labels.Labels type 2022-12-19 15:22:09 +00:00
rules_test.go Update package cmd/promtool tests for new labels.Labels type 2022-12-19 15:22:09 +00:00
sd.go Merge pull request #12048 from bboreham/faster-targets 2023-03-09 11:10:01 +00:00
sd_test.go cmd/promtool: in tests use labels.FromStrings 2022-09-09 13:34:49 +02:00
tsdb.go promtool: add support of selecting timeseries for TSDB dump 2023-01-20 15:46:23 +03:30
unittest.go Update package cmd/promtool for new labels.Labels type 2022-12-19 15:22:09 +00:00
unittest_test.go Disable time based retention in tests (#8818) 2022-01-02 23:46:03 +01:00