package
0.0.0-20170228125039-54ca42f60911
Repository: https://github.com/bwplotka/cortex.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
ExtractMetricNameFromMatchers extracts the metric name from a set of matchers.
ExtractMetricNameFromMetric extract the metric name from a model.Metric.
FromMetricsForLabelMatchersRequest unpacks a MetricsForLabelMatchersRequest proto.
FromMetricsForLabelMatchersResponse unpacks a MetricsForLabelMatchersResponse proto.
FromQueryRequest unpacks a QueryRequest proto.
FromQueryResponse unpacks a QueryResponse proto.
FromWriteRequest converts a WriteRequest proto into an array of samples.
Max64 returns the maximum of two int64s.
MergeSamples merges and dedupes two sets of already sorted sample pairs.
Min returns the minimum of two ints.
Min64 returns the minimum of two int64s.
NewDayValue makes a new DayValue; will round t down to the nearest midnight.
NewHashBucketHistogram makes a new HashBucketHistogram.
NewPriorityQueue makes a new priority queue.
RegisterFlags registers flags with the provided Registerers.
SplitFiltersAndMatchers splits empty matchers off, which are treated as filters, see #220.
ToMetricsForLabelMatchersRequest builds a MetricsForLabelMatchersRequest proto.
ToMetricsForLabelMatchersResponse builds a MetricsForLabelMatchersResponse proto.
ToQueryRequest builds a QueryRequest proto.
ToQueryResponse builds a QueryResponse proto.
ToWriteRequest converts an array of samples into a WriteRequest proto.
ValidateSample returns an err if the sample is invalid.
# Constants
Errors returned by Cortex components.
Errors returned by Cortex components.
Errors returned by Cortex components.
Errors returned by Cortex components.
Errors returned by Cortex components.
# Structs
DayValue is a model.Time that can be used as a flag.
HashBucketHistogramOpts are the options for making a HashBucketHistogram.
PriorityQueue is a priority queue.
URLValue is a url.URL that can be used as a flag.
# Interfaces
HashBucketHistogram is used to track a histogram of per-bucket rates.
Op is an operation on the priority queue.
Registerer is a thing that can RegisterFlags.
# Type aliases
Error see https://dave.cheney.net/2016/04/07/constant-errors.