Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PollIntervalDisabled is used to indicate that you want to disable polling, // as opposed to duration 0 meaning poll constantly. PollIntervalDisabled = time.Duration(0) )
Variables ¶
This section is empty.
Functions ¶
func DefaultImportedPlugins ¶
DefaultImportedPlugins defaults to whatever plugins happen to be loaded and have registered themselves with the registry. This makes loading plugins without having to define a config dead easy.
Types ¶
type Shim ¶
Shim allows you to wrap your inputs and run them as if they were part of Telegraf, except built externally.
func (*Shim) AddInput ¶
AddInput adds the input to the shim. Later calls to Run() will run this input.
func (*Shim) AddInputs ¶
AddInputs adds multiple inputs to the shim. Later calls to Run() will run these.
func (*Shim) LoadConfig ¶
LoadConfig loads and adds the inputs to the shim
Click to show internal directories.
Click to hide internal directories.