Documentation ¶
Index ¶
- func MetricNameFromLabelAdapters(labels []cortexpb.LabelAdapter) (string, error)
- func MetricNameFromLabels(lbls labels.Labels) (metricName string, err error)
- func MetricNameFromMetric(m model.Metric) (model.LabelValue, error)
- func MetricNameMatcherFromMatchers(matchers []*labels.Matcher) (*labels.Matcher, []*labels.Matcher, bool)
- func UnsafeMetricNameFromLabelAdapters(labels []cortexpb.LabelAdapter) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricNameFromLabelAdapters ¶
func MetricNameFromLabelAdapters(labels []cortexpb.LabelAdapter) (string, error)
MetricNameFromLabelAdapters extracts the metric name from a list of LabelPairs. The returned metric name string is a copy of the label value.
func MetricNameFromLabels ¶ added in v1.2.0
MetricNameFromLabels extracts the metric name from a list of Prometheus Labels.
func MetricNameFromMetric ¶
func MetricNameFromMetric(m model.Metric) (model.LabelValue, error)
MetricNameFromMetric extract the metric name from a model.Metric
func MetricNameMatcherFromMatchers ¶
func MetricNameMatcherFromMatchers(matchers []*labels.Matcher) (*labels.Matcher, []*labels.Matcher, bool)
MetricNameMatcherFromMatchers extracts the metric name from a set of matchers
func UnsafeMetricNameFromLabelAdapters ¶ added in v1.9.0
func UnsafeMetricNameFromLabelAdapters(labels []cortexpb.LabelAdapter) (string, error)
UnsafeMetricNameFromLabelAdapters extracts the metric name from a list of LabelPairs. The returned metric name string is a reference to the label value (no copy).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.