README ¶ Example Input Plugin The most basic plugin that could exist. Configuration [[inputs.example]] value = 123 Metrics example tags: source fields: value (integer) Example Output example,host=example.org,source=example.org value=123i 1564463260000000000 Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Example func (e *Example) Description() string func (e *Example) Gather(acc telegraf.Accumulator) error func (e *Example) SampleConfig() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Example ¶ type Example struct { Value int `toml:"value"` } func (*Example) Description ¶ func (e *Example) Description() string func (*Example) Gather ¶ func (e *Example) Gather(acc telegraf.Accumulator) error func (*Example) SampleConfig ¶ func (e *Example) SampleConfig() string Source Files ¶ View all Source files example.go Click to show internal directories. Click to hide internal directories.