extract

package
v1.3.0-rc.1.0...-65594da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricNameFromLabelAdapters

func MetricNameFromLabelAdapters(labels []client.LabelAdapter) (string, error)

MetricNameFromLabelAdapters extracts the metric name from a list of LabelPairs.

func MetricNameFromLabels

func MetricNameFromLabels(lbls labels.Labels) (metricName string, err error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL