# Packages
No description provided by the author
# Functions
ChainedSeriesMerge returns single series from many same, potentially overlapping series by chaining samples together.
No description provided by the author
No description provided by the author
No description provided by the author
EmptyChunkSeriesSet returns a chunk series set that's always empty.
EmptySeriesSet returns a series set that's always empty.
ErrChunkSeriesSet returns a chunk series set that wraps an error.
ErrSeriesSet returns a series set that wraps an error.
ExpandChunks iterates over all chunks in the iterator, buffering all in slice.
ExpandSamples iterates over all samples in the iterator, buffering all in slice.
MockSeries returns a series with custom timestamps, values and labelSet.
NewBuffer returns a new iterator that buffers the values within the time range of the current element and the duration of delta before, initialized with an empty iterator.
NewBufferIterator returns a new iterator that buffers the values within the time range of the current element and the duration of delta before.
NewCompactingChunkSeriesMerger returns VerticalChunkSeriesMergeFunc that merges the same chunk series into single chunk series.
NewConcatenatingChunkSeriesMerger returns a VerticalChunkSeriesMergeFunc that simply concatenates the chunks from the series.
NewFanout returns a new fanout Storage, which proxies reads and writes through to multiple underlying storages.
NewListChunkSeriesFromSamples returns chunk series entry that allows to iterate over provided samples.
NewListChunkSeriesIterator returns listChunkSeriesIterator that allows to iterate over provided chunks.
NewListSeries returns series entry with iterator that allows to iterate over provided samples.
NewListSeriesIterator returns listSeriesIterator that allows to iterate over provided samples.
NewMemoizedEmptyIterator is like NewMemoizedIterator but it's initialised with an empty iterator.
NewMemoizedIterator returns a new iterator that buffers the values within the time range of the current element and the duration of delta before.
NewMergeChunkQuerier returns a new Chunk Querier that merges results of given primary and secondary chunk queriers.
NewMergeChunkSeriesSet returns a new ChunkSeriesSet that merges many SeriesSet together.
NewMergeQuerier returns a new Querier that merges results of given primary and secondary queriers.
NewMergeSeriesSet returns a new SeriesSet that merges many SeriesSets together.
NewSeriesSetFromChunkSeriesSet converts ChunkSeriesSet to SeriesSet by decoding chunks one by one.
NewSeriesSetToChunkSet converts SeriesSet to ChunkSeriesSet by encoding chunks from samples.
NewSeriesToChunkEncoder encodes samples to chunks with 120 samples limit.
NoopChunkedQuerier is a ChunkQuerier that does nothing.
NoopChunkedSeriesSet is a ChunkSeriesSet that does nothing.
NoopQuerier is a Querier that does nothing.
NoopSeriesSet is a SeriesSet that does nothing.
TestSeriesSet returns a mock series set.
# Variables
The errors exposed.
ErrDuplicateSampleForTimestamp is when the sample has same timestamp but different value.
The errors exposed.
The errors exposed.
The errors exposed.
The errors exposed.
ErrOutOfBounds is when out of order support is disabled and the sample is older than the min valid time for the append.
ErrOutOfOrderCT indicates failed append of CT to the storage due to CT being older the then newer sample.
The errors exposed.
ErrOutOfOrderSample is when out of order support is disabled and the sample is out of order.
ErrTooOldSample is when out of order support is enabled but the sample is outside the time window allowed.
# Structs
BufferedSeriesIterator wraps an iterator with a look-back buffer.
No description provided by the author
MemoizedSeriesIterator wraps an iterator with a buffer to look back the previous element.
MockQuerier is used for test purposes to mock the selected series that is returned.
A MockQueryable is used for testing purposes so that a mock Querier can be used.
SampleRingIterator is returned by BufferedSeriesIterator.Buffer() and can be used to iterate samples buffered in the lookback window.
SelectHints specifies hints passed for data selections.
No description provided by the author
# Interfaces
Appendable allows creating appenders.
Appender provides batched appends against a storage.
No description provided by the author
ChunkQuerier provides querying access over time series data of a fixed time range.
A ChunkQueryable handles queries against a storage.
ChunkSeries exposes a single time series and allows iterating over chunks.
ChunkSeriesSet contains a set of chunked series.
CreatedTimestampAppender provides an interface for appending CT to storage.
ExemplarAppender provides an interface for adding samples to exemplar storage, which within Prometheus is in-memory only.
ExemplarQuerier provides reading access to time series data.
No description provided by the author
ExemplarStorage ingests and manages exemplars, along with various indexes.
GetRef is an extra interface on Appenders used by downstream projects (e.g.
HistogramAppender provides an interface for appending histograms to the storage.
LabelQuerier provides querying access over labels.
Labels represents an item that has labels e.g.
MetadataUpdater provides an interface for associating metadata to stored series.
Querier provides querying access over time series data of a fixed time range.
A Queryable handles queries against a storage.
SampleAndChunkQueryable allows retrieving samples as well as encoded samples in form of chunks.
No description provided by the author
Samples interface allows to work on arrays of types that are compatible with chunks.Sample.
Series exposes a single time series and allows iterating over samples.
SeriesSet contains a set of series.
Storage ingests and manages samples, along with various indexes.
# Type aliases
TODO(bwplotka): Move to promql/engine_test.go? QueryableFunc is an adapter to allow the use of ordinary functions as Queryables.
SeriesRef is a generic series reference.
VerticalChunkSeriesMergeFunc returns merged chunk series implementation that merges potentially time-overlapping chunk series with the same labels into single ChunkSeries.
VerticalSeriesMergeFunc returns merged series implementation that merges series with same labels together.