plugins

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flush

func Flush(plugin string) map[string]interface{}

Flush plugin metrics

func Initialize

func Initialize() error

Initialize the plugin manager

func Inventory

func Inventory() ([]byte, error)

Inventory returns list of active plugins

func IsInternal

func IsInternal(plugin string) bool

IsInternal checks to see if the plugin is one of the internal plugins (write|statsd)

func IsValid

func IsValid(plugin string) bool

IsValid determines if a specific plugin is valid

func Run

func Run(plugin string) error

Run one or all plugins

func Scan

func Scan() error

Scan the plugin directory for new/updated plugins

Types

type Metric

type Metric struct {
	Type  string      `json:"_type"`
	Value interface{} `json:"_value"`
}

Metric defines an individual metric sample or array of samples (histogram)

type Metrics

type Metrics map[string]Metric

Metrics defines the list of metrics for a given plugin

type Plugin

type Plugin struct {
	sync.RWMutex

	ID           string
	InstanceID   string
	Name         string
	InstanceArgs []string
	Command      string
	Generation   uint64
	Running      bool
	// contains filtered or unexported fields
}

Plugin defines a specific plugin

type PluginList

type PluginList struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

PluginList all active plugins

Jump to

Keyboard shortcuts

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