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.
Click to show internal directories.
Click to hide internal directories.