prometheus/storage
Bryan Boreham abd9909595 Update package storage/remote for new labels.Labels type
`QueueManager.externalLabels` becomes a slice rather than a `Labels` so
we can index into it when doing the merge operation.

Note we avoid calling `Labels.Len()` in `labelProtosToLabels()`.
It isn't necessary - `append()` will enlarge the buffer and we're
expecting to re-use it many times.

Also, we now validate protobuf input before converting to Labels.
This way we can detect errors first, and we don't place unnecessary
requirements on the Labels structure.

Re-do seriesFilter using labels.Builder (albeit N^2).

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2022-12-19 15:22:09 +00:00
..
remote Update package storage/remote for new labels.Labels type 2022-12-19 15:22:09 +00:00
buffer.go storage: Avoid duplicate function call in sampleRingIterator (#11502) 2022-11-01 13:34:47 -04:00
buffer_test.go Merge 'main' into sparsehistogram 2022-10-05 22:14:49 +02:00
fanout.go Merge branch 'main' into sparsehistogram 2022-08-10 17:54:37 +02:00
fanout_test.go storage: allow re-use of iterators 2022-12-15 18:32:45 +00:00
generic.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
interface.go Review feedback 2022-12-15 18:32:45 +00:00
lazy.go tsdb: Added ChunkQueryable implementations to db; unified MergeSeriesSets and vertical to single struct. (#7069) 2020-07-31 16:03:02 +01:00
memoized_iterator.go Merge branch 'main' into sparsehistogram 2021-12-15 13:49:33 +01:00
memoized_iterator_test.go Merge 'main' into sparsehistogram 2022-10-05 22:14:49 +02:00
merge.go Update package storage for new labels.Labels type 2022-12-19 15:22:09 +00:00
merge_test.go storage: re-use iterators to save garbage 2022-12-15 18:32:45 +00:00
noop.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
secondary.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
series.go Review feedback 2022-12-15 18:32:45 +00:00
series_test.go storage: iterator fixes after merge 2021-12-18 14:12:01 +01:00