Documentation
¶
Overview ¶
Package collector does the metric point gathering for all configured input every fixed time interval
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector implement running Gather on inputs every fixed time interval.
func New ¶
func New(acc telegraf.Accumulator, secretInputsGate *gate.Gate) *Collector
New returns a Collector with default option
By default, no input are added (use AddInput) and collection is done every 10 seconds.
func (*Collector) RemoveInput ¶
RemoveInput removes an input by its ID.
Click to show internal directories.
Click to hide internal directories.