# Functions
MetadataHandler returns metric metadata held by Cortex for a given tenant.
New builds a queryable and promql engine.
NewQueryable creates a new Queryable for cortex.
NewSampleAndChunkQueryable creates a SampleAndChunkQueryable from a Queryable with a ChunkQueryable stub, that errors once it gets called.
RemoteReadHandler handles Prometheus remote read requests.
TranslateToPromqlAPIError converts error to one of promql.Errors for consumption in PromQL API.
Wraps storage.Queryable into QueryableWithFilter, with no query filtering.
Returns QueryableWithFilter, that is used only if query starts before given timestamp.
# Structs
BlocksStoreQueryable is a queryable which queries blocks storage via the store-gateway.
BucketIndexBlocksFinder implements BlocksFinder interface and find blocks in the bucket looking up the bucket index.
BucketScanBlocksFinder is a BlocksFinder implementation periodically scanning the bucket to discover blocks.
Config contains the configuration require to create a querier.
DummyAlertmanagerRetriever implements AlertmanagerRetriever.
DummyRulesRetriever implements RulesRetriever.
DummyTargetRetriever implements github.com/prometheus/prometheus/web/api/v1.targetRetriever.
# Interfaces
BlocksFinder is the interface used to find blocks for a given user and time range.
BlocksStoreClient is the interface that should be implemented by any client used to query a backend store-gateway.
BlocksStoreLimits is the interface that should be implemented by the limits provider.
BlocksStoreSet is the interface used to get the clients to query series on a set of blocks.
Distributor is the read interface to the distributor, made an interface here to reduce package coupling.
QueryableWithFilter extends Queryable interface with `UseQueryable` filtering function.
# Type aliases
ErrTranslateFn is used to translate or wrap error before returning it by functions in storage.SampleAndChunkQueryable interface.