metric

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsolePlugin

type ConsolePlugin struct {
	ConsolePluginConfig *ConsolePluginConfig
}

func NewConsolePlugin

func NewConsolePlugin(config *ConsolePluginConfig) *ConsolePlugin

func (*ConsolePlugin) Init

func (console *ConsolePlugin) Init() error

func (*ConsolePlugin) Name

func (console *ConsolePlugin) Name() string

func (*ConsolePlugin) Send

func (console *ConsolePlugin) Send(cMetrics []*collectd.CollectDMetric) error

type ConsolePluginConfig

type ConsolePluginConfig struct {
	Active bool `yaml:"active"`
	Json   bool `yaml:"json"`
}

type GraphitePlugin

type GraphitePlugin struct {
	Server *gr.Graphite
	Config *GraphitePluginConfig
}

func NewGraphitePlugin

func NewGraphitePlugin(config *GraphitePluginConfig) *GraphitePlugin

func (*GraphitePlugin) Connect

func (graphite *GraphitePlugin) Connect() error

func (*GraphitePlugin) Init

func (graphite *GraphitePlugin) Init() error

func (*GraphitePlugin) Name

func (graphite *GraphitePlugin) Name() string

func (*GraphitePlugin) Send

func (graphite *GraphitePlugin) Send(cMetrics []*collectd.CollectDMetric) error

type GraphitePluginConfig

type GraphitePluginConfig struct {
	Active bool   `toml:"active"`
	Host   string `toml:"host"`
	Port   int    `toml:"port"`
	Proto  string `toml:"proto"`
	Prefix string `toml:"prefix"`
}

Jump to

Keyboard shortcuts

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