example

package
v0.0.0-...-c362814 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 3 Imported by: 0

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

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL