package
1.19.0
Repository: https://github.com/cortexproject/cortex.git
Documentation: pkg.go.dev

# Functions

Efficiently copies labels input slice.
FloatHistogramProtoToFloatHistogram extracts a float Histogram from the provided proto message.
FloatHistogramToHistogramProto converts a float Histogram to a normal Histogram's protobuf message type.
FromLabelAdaptersToLabels casts []LabelAdapter to labels.Labels.
FromLabelAdaptersToLabelsWithCopy converts []LabelAdapter to labels.Labels.
FromLabelAdaptersToMetric converts []LabelAdapter to a model.Metric.
FromLabelAdaptersToMetric converts []LabelAdapter to a model.Metric with copy.
FromLabelsToLabelAdapters casts labels.Labels to []LabelAdapter.
FromMetricsToLabelAdapters converts model.Metric to []LabelAdapter.
HistogramPromProtoToHistogramProto converts a prometheus protobuf Histogram to cortex protobuf Histogram.
HistogramProtoToHistogram extracts a (normal integer) Histogram from the provided proto message.
HistogramToHistogramProto converts a (normal integer) Histogram to its protobuf message type.
MetricMetadataMetricTypeToMetricType converts a metric type from our internal client to a Prometheus one.
PreallocTimeseriesSliceFromPool retrieves a slice of PreallocTimeseries from a sync.Pool.
ReuseSlice puts the slice back into a sync.Pool for reuse.
ReuseTimeseries puts the timeseries back into a sync.Pool for reuse.
TimeseriesFromPool retrieves a pointer to a TimeSeries from a sync.Pool.
ToWriteRequest converts matched slices of Labels, Samples, Metadata and Histograms into a WriteRequest proto.

# Constants

# Variables

# Structs

A BucketSpan defines a number of consecutive buckets with their offset.
A native histogram, also known as a sparse histogram.
PreallocConfig configures how structures will be preallocated to optimise proto unmarshalling.
PreallocTimeseries is a TimeSeries which preallocs slices on Unmarshal.
PreallocWriteRequest is a WriteRequest which preallocs slices on Unmarshal.

# Type aliases

LabelAdapter is a labels.Label that can be marshalled to/from protos.