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: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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