labelsfilter

package
v1.19.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// LPCfgFileVersion represents the version of a Label Prefix Configuration File
	LPCfgFileVersion = 1
)

Variables

This section is empty.

Functions

func Filter

func Filter(lbls labels.Labels) (identityLabels, informationLabels labels.Labels)

Filter returns Labels from the given labels that have the same source and the same prefix as one of lpc valid prefixes, as well as labels that do not match the aforementioned filtering criteria.

func FilterLabelsByRegex added in v1.16.0

func FilterLabelsByRegex(excludePatterns []*regexp.Regexp, labels map[string]string) map[string]string