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

# Functions

No description provided by the author
No description provided by the author
DoRequests executes a list of requests in parallel.
EvaluateAtModifierFunction parse the query and evaluates the `start()` and `end()` at modifier functions into actual constant timestamps.
InstrumentMiddleware can be inserted into the middleware chain to expose timing information.
MergeMiddlewares produces a middleware that applies multiple middleware in turn; ie Merge(f,g,h).Wrap(handler) == f.Wrap(g.Wrap(h.Wrap(handler))).
NewEmptyPrometheusInstantQueryResponse returns an empty successful Prometheus query range response.
NewEmptyPrometheusResponse returns an empty successful Prometheus query range response.
NewInstrumentMiddlewareMetrics makes a new InstrumentMiddlewareMetrics.
NewLimitsMiddleware creates a new Middleware that enforces query limits.
NewResultsCacheMiddleware creates results cache middleware from config.
NewRetryMiddleware returns a middleware that retries requests if they fail with 500 or a non-HTTP error.
No description provided by the author
NewRoundTripper merges a set of middlewares into an handler, then inject it into the `next` roundtripper using the codec to translate requests and responses.
No description provided by the author
NewTripperware returns a Tripperware configured with middlewares to limit, align, split, retry and cache requests.
No description provided by the author
No description provided by the author
SliceHistogram assumes given histogram are sorted by timestamp in ascending order and return a sub slice whose first element's is the smallest timestamp that is strictly bigger than the given minTs.
SliceSamples assumes given samples are sorted by timestamp in ascending order and return a sub slice whose first element's is the smallest timestamp that is strictly bigger than the given minTs.
SplitByIntervalMiddleware creates a new Middleware that splits requests by a given interval.
StatsMerge merge the stats from 2 responses this function is similar to matrixMerge.

# Constants

StatusSuccess Prometheus success result.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
PassthroughMiddleware is a noop middleware.
PrometheusCodec is a codec to encode and decode Prometheus query range requests and responses.
ResultsCacheGenNumberHeaderName holds name of the header we want to set in http response.
StepAlignMiddleware aligns the start and end of request to the step to improved the cacheability of the query results.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
Config for query_range middleware chain.
No description provided by the author
No description provided by the author
No description provided by the author
InstrumentMiddlewareMetrics holds the metrics tracked by InstrumentMiddleware.
No description provided by the author
NoopCollector is a noop collector that can be used as placeholder when no metric should tracked by the instrumentation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PrometheusResponseExtractor helps extracting specific info from Query Response.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RequestResponse contains a request response and the respective request that was used.
ResultsCacheConfig is the config for the results cache.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Buffer can be used to read a response body.
No description provided by the author
CacheSplitter generates cache keys.
Codec is used to encode/decode query range requests and responses so they can be passed down to middlewares.
Extractor is used by the cache to extract a subset of a response from a cache entry.
Handler is like http.Handle, but specifically for Prometheus query_range calls.
Limits allows us to specify per-tenant runtime limits on the behavior of the query handling code.
Merger is used by middlewares making multiple requests to merge back all responses into a single one.
Middleware is a higher order Handler.
Request represents a query range request that can be process by middlewares.
Response represents a query range response.

# Type aliases

No description provided by the author
HandlerFunc is like http.HandlerFunc, but for Handler.
No description provided by the author
MiddlewareFunc is like http.HandlerFunc, but for Middleware.
RoundTripFunc is to http.RoundTripper what http.HandlerFunc is to http.Handler.
ShouldCacheFn checks whether the current request should go to cache or not.
Tripperware is a signature for all http client-side middleware.