Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewValueCounter ¶
func NewValueCounter() telegraf.Aggregator
NewValueCounter create a new aggregation plugin which counts the occurrences of fields and emits the count.
Types ¶
type ValueCounter ¶
type ValueCounter struct { Fields []string // contains filtered or unexported fields }
ValueCounter an aggregation plugin
func (*ValueCounter) Add ¶
func (vc *ValueCounter) Add(in telegraf.Metric)
Add is run on every metric which passes the plugin
func (*ValueCounter) Description ¶
func (vc *ValueCounter) Description() string
Description returns the description of the ValueCounter plugin
func (*ValueCounter) Push ¶
func (vc *ValueCounter) Push(acc telegraf.Accumulator)
Push emits the counters
func (*ValueCounter) Reset ¶
func (vc *ValueCounter) Reset()
Reset the cache, executed after each push
func (*ValueCounter) SampleConfig ¶
func (vc *ValueCounter) SampleConfig() string
SampleConfig generates a sample config for the ValueCounter plugin
Click to show internal directories.
Click to hide internal directories.