agent

package
v0.81.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 9

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
	MetadataGenerators []*metadata.Generator
}

Agent is the root of metrics collectors

func (*Agent) CollectGraphDefsOfPlugins added in v0.15.0

func (agent *Agent) CollectGraphDefsOfPlugins() []*mkr.GraphDefsParam

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(ctx context.Context) chan *MetricsResult

Watch XXX

type MetricsResult

type MetricsResult struct {
	Created time.Time
	Values  []*metrics.ValuesCustomIdentifier
}

MetricsResult XXX

Jump to

Keyboard shortcuts

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