plugins

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugins = map[string]Creator{}

Functions

func Add

func Add(name string, creator Creator)

Types

type Accumulator

type Accumulator interface {
	// Create a point with a value, decorating it with tags
	// NOTE: tags is expected to be owned by the caller, don't mutate
	// it after passing to Add.
	Add(measurement string, value interface{}, tags map[string]string)

	// Create a point with a set of values, decorating it with tags
	// NOTE: tags and values are expected to be owned by the caller, don't mutate
	// them after passing to AddFieldsWithTime.
	AddFieldsWithTime(
		measurement string,
		values map[string]interface{},
		tags map[string]string,
		timestamp time.Time,
	)
}

type Creator

type Creator func() Plugin

type MockPlugin

type MockPlugin struct {
	mock.Mock
}

func (*MockPlugin) Gather

func (m *MockPlugin) Gather(_a0 Accumulator) error

type Plugin

type Plugin interface {
	SampleConfig() string
	Description() string
	Gather(Accumulator) error
}

Directories

Path Synopsis
Lustre 2.x telegraf plugin Lustre (http://lustre.org/) is an open-source, parallel file system for HPC environments.
Lustre 2.x telegraf plugin Lustre (http://lustre.org/) is an open-source, parallel file system for HPC environments.

Jump to

Keyboard shortcuts

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