MCPcopy
hub / github.com/prometheus/prometheus / Read

Method Read

storage/remote/client.go:146–146  ·  view source on GitHub ↗
(ctx context.Context, query *prompb.Query, sortSeries bool)

Source from the content-addressed store, hash-verified

144// also fall back to the SAMPLES method if necessary.
145type ReadClient interface {
146 Read(ctx context.Context, query *prompb.Query, sortSeries bool) (storage.SeriesSet, error)
147 ReadMultiple(ctx context.Context, queries []*prompb.Query, sortSeries bool) (storage.SeriesSet, error)
148}
149

Callers 15

TestReadClientFunction · 0.95
repairLastChunkFileFunction · 0.65
ReadMethod · 0.65
generateRandomEntriesFunction · 0.65
ReadMethod · 0.65
fillBufferMethod · 0.65
TestCorruptAndCarryOnFunction · 0.65
TestSegmentMetricFunction · 0.65
NextMethod · 0.65
SelectMethod · 0.65

Implementers 2

mockedRemoteClientstorage/remote/read_test.go
Clientstorage/remote/client.go

Calls

no outgoing calls

Tested by 9

TestReadClientFunction · 0.76
generateRandomEntriesFunction · 0.52
ReadMethod · 0.52
TestCorruptAndCarryOnFunction · 0.52
TestSegmentMetricFunction · 0.52
ReadMethod · 0.52
TestMMapFileFunction · 0.52