modify

package
v0.0.0-...-69690f0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRenameCallback

func AddRenameCallback(input telegraf.Input, f RenameCallback) telegraf.Input

AddRenameCallback adds a rename callback that can mutate labels & annotations.

Types

type RenameCallback

type RenameCallback func(labels map[string]string, annotations types.MetricAnnotations) (newLabels map[string]string, newAnnotations types.MetricAnnotations)

RenameCallback is a function which can mutate labels & annotations Mutation for labels could be done in place or by returning a new map.

Jump to

Keyboard shortcuts

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