MCPcopy
hub / github.com/prometheus/prometheus / AddSeries

Method AddSeries

tsdb/block.go:53–53  ·  view source on GitHub ↗

AddSeries populates the index writer with a series and its offsets of chunks that the index can reference. Implementations may require series to be insert in strictly increasing order by their labels. The reference numbers are used to resolve entries in postings lists that are added later.

(ref storage.SeriesRef, l labels.Labels, chunks ...chunks.Meta)

Source from the content-addressed store, hash-verified

51 // their labels. The reference numbers are used to resolve entries in postings lists
52 // that are added later.
53 AddSeries(ref storage.SeriesRef, l labels.Labels, chunks ...chunks.Meta) error
54
55 // Close writes any finalization and closes the resources associated with
56 // the underlying writer.

Callers 6

createIdxChkReadersFunction · 0.65
TestBlockBaseSeriesSetFunction · 0.65
PopulateBlockMethod · 0.65

Implementers 2

mockIndexWritertsdb/mocks_test.go
Writertsdb/index/index.go

Calls

no outgoing calls

Tested by 5

createIdxChkReadersFunction · 0.52
TestBlockBaseSeriesSetFunction · 0.52