Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Process ¶
func Process(lbls phlaremodel.Labels, cfgs ...*relabel.Config) (ret phlaremodel.Labels, keep bool)
Process returns a relabeled version of the given label set. The relabel configurations are applied in order of input. There are circumstances where Process will modify the input label. If you want to avoid issues with the input label set being modified, at the cost of higher memory usage, you can use lbls.Copy(). If a label set is dropped, EmptyLabels and false is returned.
func ProcessBuilder ¶
func ProcessBuilder(lb *phlaremodel.LabelsBuilder, cfgs ...*Config) (keep bool)
ProcessBuilder is like Process, but the caller passes a labels.Builder containing the initial set of labels, which is mutated by the rules.
Types ¶
Click to show internal directories.
Click to hide internal directories.