plugins

package
v0.0.0-...-d990f74 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(plugin Plugin)

Register a plugin. Use this function before starting a Metrononme server.

Types

type Plugin

type Plugin interface {
	// Name of the plugin.
	Name() string

	// Snapshot asks the plugin to return a snapshot of the metrics.
	Snapshot() (interface{}, error)
}

Plugin is a component that watches a resource and can return metrics.

func Plugins

func Plugins() []Plugin

Plugins returns a list of all registered plugins.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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