Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Defaults ¶
type Defaults struct {
DefaultFieldsSets map[string]interface{} `toml:"fields"`
}
Defaults is a processor for ensuring certain fields always exist on your Metrics with at least a default value.
func (*Defaults) Apply ¶
Apply contains the main implementation of this processor. For each metric in 'inputMetrics', it goes over each default pair. If the field in the pair does not exist on the metric, the associated default is added. If the field was found, then, if its value is the empty string or one or more spaces, it is replaced by the associated default.
func (*Defaults) Description ¶
Description is a brief description of this processor plugin's behaviour.
func (*Defaults) SampleConfig ¶
SampleConfig represents a sample toml config for this plugin.
Click to show internal directories.
Click to hide internal directories.