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

# README

NOTE(bwplotka): This excerpt of "github.com/prometheus/prometheus/prompb" reconstructed to avoid XXX fields for unsafe conversion to safe allocs.

Controlled by make proto

# Functions

FloatHistogramToHistogramProto converts a float histogram to a protobuf type.
Copied from https://github.com/prometheus/prometheus/blob/0ab95536115adfe50af249d36d73674be694ca3f/storage/remote/codec.go#L725-L739.
HistogramProtoToFloatHistogram extracts a (normal integer) Histogram from the provided proto message to a Float Histogram.
HistogramProtoToHistogram extracts a (normal integer) Histogram from the provided proto message.
Copied from https://github.com/prometheus/prometheus/blob/0ab95536115adfe50af249d36d73674be694ca3f/storage/remote/codec.go#L709-L723.
SamplesFromPromqlSamples converts a slice of promql.Sample to a slice of Sample.
SamplesFromPromqlSeries converts promql.Series to a slice of Sample and a slice of Histogram.
SamplesFromSamplePairs converts a slice of model.SamplePair to a slice of Sample.

# Constants

# Variables

# Structs

A BucketSpan defines a number of consecutive buckets with their offset.
Chunk represents a TSDB chunk.
ChunkedReadResponse is a response when response_type equals STREAMED_XOR_CHUNKS.
ChunkedSeries represents single, encoded time series.
A native histogram, also known as a sparse histogram.
Matcher specifies a rule, which can match or set of labels or not.
ReadRequest represents a remote read request.
ReadResponse is a response when response_type equals SAMPLES.
TimeSeries represents samples and labels for a single time series.

# Type aliases