extract

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricNameMatcherFromMatchers

func MetricNameMatcherFromMatchers(matchers []*labels.Matcher) (*labels.Matcher, []*labels.Matcher, bool)

MetricNameMatcherFromMatchers extracts the metric name from a set of matchers

func UnsafeMetricNameFromLabelAdapters

func UnsafeMetricNameFromLabelAdapters(labels []logproto.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.

Jump to

Keyboard shortcuts

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