types

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2014 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Detectors = map[string]func() []string{
	"load_average": func() []string { return []string{} },
	"cpu_usage":    func() []string { return []string{} },
	"mem_usage":    func() []string { return []string{} },
	"net_usage":    net_usage.Detect,
	"io_usage":     io_usage.Detect,
	"fs_usage":     fs_usage.Detect,
}
View Source
var Plugins = map[string]func(interface{}, *logger.Logger) interface{}{
	"load_average":      load_average.GetMetric,
	"cpu_usage":         cpu_usage.GetMetric,
	"mem_usage":         mem_usage.GetMetric,
	"command":           command.GetMetric,
	"net_usage":         net_usage.GetMetric,
	"io_usage":          io_usage.GetMetric,
	"record":            record.GetMetric,
	"fs_usage":          fs_usage.GetMetric,
	"json_poll":         json_poll.GetMetric,
	"socket_usage":      socket_usage.GetMetric,
	"process_count":     process_count.GetMetric,
	"process_mem_usage": process_mem_usage.GetMetric,
}

Functions

This section is empty.

Types

type CirconusConfig

type CirconusConfig struct {
	Listen       string
	Username     string
	Password     string
	Facility     string
	LogLevel     string
	PollInterval uint
	Plugins      PluginConfig
}

type ConfigMap

type ConfigMap struct {
	Type   string
	Params interface{}
}

type PluginConfig added in v0.5.0

type PluginConfig map[string]ConfigMap

type PluginResult added in v0.5.0

type PluginResult interface{}

type PluginResultCollection added in v0.5.0

type PluginResultCollection map[string]PluginResult

Jump to

Keyboard shortcuts

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