agent

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	MetricsGenerators []metrics.Generator
	PluginGenerators  []metrics.PluginGenerator
	Checkers          []checks.Checker
}

Agent is the root of metrics collectors

func (*Agent) CollectGraphDefsOfPlugins added in v0.15.0

func (agent *Agent) CollectGraphDefsOfPlugins() []mackerel.CreateGraphDefsPayload

CollectGraphDefsOfPlugins collects GraphDefs of Plugins

func (*Agent) CollectMetrics added in v0.15.0

func (agent *Agent) CollectMetrics(collectedTime time.Time) *MetricsResult

CollectMetrics collects metrics with generators.

func (*Agent) InitPluginGenerators added in v0.10.0

func (agent *Agent) InitPluginGenerators(api *mackerel.API)

InitPluginGenerators XXX

func (*Agent) Watch

func (agent *Agent) Watch() chan *MetricsResult

Watch XXX

type MetricsResult

type MetricsResult struct {
	Created time.Time
	Values  metrics.Values
}

MetricsResult XXX

Jump to

Keyboard shortcuts

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