Documentation
¶
Index ¶
- Constants
- Variables
- func DropBucketLabel(l labels.Labels, b labels.ScratchBuilder) (labels.Labels, labels.Label)
- func DropLabel(l labels.Labels, name string, b labels.ScratchBuilder) (labels.Labels, labels.Label)
- func DropLabels(l labels.Labels, shouldDrop func(name string) bool, b labels.ScratchBuilder) labels.Labels
- func DropReserved(l labels.Labels, b labels.ScratchBuilder) labels.Labels
Constants ¶
View Source
const ( MetricType = "__type__" MetricUnit = "__unit__" )
Variables ¶
View Source
var (
ErrDuplicateLabelSet = errors.New("vector cannot contain metrics with the same labelset")
)
Functions ¶
func DropBucketLabel ¶
DropBucketLabel removes the le label and returns the dropped name and remaining labels.
func DropLabels ¶
func DropLabels(l labels.Labels, shouldDrop func(name string) bool, b labels.ScratchBuilder) labels.Labels
DropLabels removes labels from l based on the shouldDrop function and returns the remaining labels.
func DropReserved ¶
DropReserved removes all reserved labels (__name__, __type__, __unit__) and returns the remaining labels.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.