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
interface.go Review feedback 2022-12-15 18:32:45 +00:00
lazy.go
memoized_iterator.go
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
secondary.go
series.go Review feedback 2022-12-15 18:32:45 +00:00
series_test.go