prometheus/cmd/promtool
Bryan Boreham 10b27dfb84 Simplify IndexReader.Series interface
Instead of passing in a `ScratchBuilder` and `Labels`, just pass the
builder and the caller can extract labels from it. In many cases the
caller didn't use the Labels value anyway.

Now in `Labels.ScratchBuilder` we need a slightly different API: one
to assign what will be the result, instead of overwriting some other
`Labels`. This is safer and easier to reason about.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2022-12-19 15:22:09 +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 Update package cmd/promtool for new labels.Labels type 2022-12-19 15:22:09 +00:00
main_test.go Fix promtool check config not erroring properly on failures (#10952) 2022-07-01 14:38:49 +02: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 no-default-scrape-port feature flag (#9523) 2022-07-20 13:35:47 +02:00
sd_test.go cmd/promtool: in tests use labels.FromStrings 2022-09-09 13:34:49 +02:00
tsdb.go Simplify IndexReader.Series interface 2022-12-19 15:22:09 +00:00
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