package
0.37.2
Repository: https://github.com/thanos-io/thanos.git
Documentation: pkg.go.dev

# Packages

# Functions

ExpandPostingsWithContext returns the postings expanded as a slice and considers context.
LabelSetsMatch returns false if all label-set do not match the matchers (aka: OR is between all label-sets).
MatchersForLabelSets generates a list of label matchers for the given label sets.
NewBucketStore creates a new bucket backed store that implements the store API against an object store bucket.
NewBytesLimiterFactory makes a new BytesLimiterFactory with a static limit.
NewChunksLimiterFactory makes a new ChunksLimiterFactory with a static limit.
NewDefaultChunkBytesPool returns a chunk bytes pool with default settings.
NewInstrumentedStoreServer creates a new instrumentedStoreServer.
NewLimitedStoreServer creates a new limitedStoreServer.
NewLimiter returns a new limiter with a specified limit.
TODO(bwplotka): Add remote read so Prometheus users can use this.
NewNoCopyScanner returns bufio.Scanner-like scanner that is meant to be used on already allocated byte slice (or mmapped) one.
NewPrometheusStore returns a new PrometheusStore that uses the given HTTP client to talk to Prometheus.
NewProxyResponseLoserTree returns heap that k-way merge series together.
NewProxyStore returns a new ProxyStore that uses the given clients that implements storeAPI to fan-in all series to the client.
NewResponseDeduplicator returns a wrapper around a loser tree that merges duplicated series messages into one.
NewSeriesLimiterFactory makes a new SeriesLimiterFactory with a static limit.
NewSeriesStatsAggregator is a constructor for seriesStatsAggregator.
NewTSDBStore creates a new TSDBStore.
ScanGRPCCurlProtoStreamMessages allows to tokenize each streamed gRPC message from grpcurl tool.
WithChunkPool sets a pool.Bytes to use for chunks.
WithCuckooMetricNameStoreFilter returns a TSDBStoreOption that enables the Cuckoo filter for metric names.
WithDebugLogging enables debug logging.
WithDontResort disables series resorting in Store Gateway.
WithFilterConfig sets a filter which Store uses for filtering metrics based on time.
WithIndexCache sets a indexCache to use instead of a noopCache.
WithIndexHeaderLazyDownloadStrategy specifies what block to lazy download its index header.
WithLazyExpandedPostings enables lazy expanded postings.
WithLogger sets the BucketStore logger to the one you pass.
WithoutDedup disabled chunk deduplication when streaming series.
WithProxyStoreDebugLogging toggles debug logging.
WithQueryGate sets a queryGate to use instead of a noopGate.
WithRegistry sets a registry that BucketStore uses to register metrics with.
WithRequestLoggerFunc sets the BucketStore to use the passed RequestLoggerFunc to initialize logger during query time.
WithTSDBSelector sets the TSDB selector for the proxy.

# Constants

CompatibilityTypeLabelName is an artificial label that Store Gateway can optionally advertise.
DefaultPostingOffsetInMemorySampling represents default value for --store.index-header-posting-offsets-in-mem-sampling.
EagerRetrieval is optimized to read all into internal buffer before returning to readers (e.g.
EstimatedMaxChunkSize is average max of chunk size.
LazyRetrieval allows readers (e.g.
MaxSamplesPerChunk is approximately the max number of samples that we may have in any given chunk.
SeriesBatchSize is the default batch size when fetching series from object storage.
StoreMatcherKey is the context key for the store's allow list.
UninitializedTSDBTime is the TSDB start time of an uninitialized TSDB instance.

# Variables

ErrorNoStoresMatched is returned if the query does not match any data.

# Structs

BucketStore implements the store API backed by a bucket.
FilterConfig is a configuration, which Store uses for filtering metrics based on time.
Limiter is a simple mechanism for checking if something has passed a certain threshold.
LocalStore implements the store API against single file with stream of proto-based SeriesResponses in JSON format.
NoopSeriesStatsAggregator is a query performance series aggregator that does nothing.
NoopSeriesStatsAggregatorFactory is a query performance series aggregator factory that does nothing.
PrometheusStore implements the store node API on top of the Prometheus remote read API.
ProxyStore implements the store API that proxies request to all given underlying stores.
ReadWriteTSDBStore is a TSDBStore that can also be written to.
SeriesSelectLimits are limits applied against individual Series calls.
TSDBStore implements the store API against a local TSDB instance.

# Interfaces

Client holds meta information about a store.
CloseDelegator allows to delegate close (releasing resources used by request to the server).

# Type aliases

BucketStoreOption are functions that configure BucketStore.
BytesLimiterFactory is used to create a new BytesLimiter.
ChunksLimiterFactory is used to create a new ChunksLimiter.
BucketStoreOption are functions that configure BucketStore.
RetrievalStrategy stores what kind of retrieval strategy shall be used for the async response set.
SeriesLimiterFactory is used to create a new SeriesLimiter.
TSDBStoreOption is a functional option for TSDBStore.