metrics

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentGenerator added in v0.17.0

type AgentGenerator struct {
}

AgentGenerator is generator of metrics about the runnning agent itself

func (*AgentGenerator) CustomIdentifier added in v0.53.0

func (g *AgentGenerator) CustomIdentifier() *string

CustomIdentifier for PluginGenerator interface

func (*AgentGenerator) Generate added in v0.17.0

func (g *AgentGenerator) Generate() (Values, error)

Generate generates the memory usage of the running agent itself

func (*AgentGenerator) PrepareGraphDefs added in v0.53.0

func (g *AgentGenerator) PrepareGraphDefs() ([]mackerel.CreateGraphDefsPayload, error)

PrepareGraphDefs for PluginGenerator interface

type FilesystemGenerator added in v0.31.0

type FilesystemGenerator struct {
	IgnoreRegexp  *regexp.Regexp
	UseMountpoint bool
}

FilesystemGenerator is common filesystem metrics generator on unix os.

func (*FilesystemGenerator) Generate added in v0.31.0

func (g *FilesystemGenerator) Generate() (Values, error)

Generate the metrics of filesystems

type Generator

type Generator interface {
	Generate() (Values, error)
}

Generator generates metrics

type InterfaceGenerator

type InterfaceGenerator struct {
	Interval time.Duration
}

InterfaceGenerator generates interface metric values

func (*InterfaceGenerator) Generate

func (g *InterfaceGenerator) Generate() (Values, error)

Generate interface metric values

type Loadavg5Generator

type Loadavg5Generator struct {
}

Loadavg5Generator generates load average values

func (*Loadavg5Generator) Generate

func (g *Loadavg5Generator) Generate() (Values, error)

Generate load averages

type PluginGenerator

type PluginGenerator interface {
	Generator
	PrepareGraphDefs() ([]mackerel.CreateGraphDefsPayload, error)
	CustomIdentifier() *string
}

PluginGenerator generates metrics of plugin

func NewPluginGenerator added in v0.13.0

func NewPluginGenerator(conf *config.MetricPlugin) PluginGenerator

NewPluginGenerator XXX

type Values

type Values map[string]float64

Values represents metric values

type ValuesCustomIdentifier added in v0.31.0

type ValuesCustomIdentifier struct {
	Values           Values
	CustomIdentifier *string
}

ValuesCustomIdentifier holds the metric values with the optional custom identifier

func MergeValuesCustomIdentifiers added in v0.31.0

func MergeValuesCustomIdentifiers(values []*ValuesCustomIdentifier, newValue *ValuesCustomIdentifier) []*ValuesCustomIdentifier

MergeValuesCustomIdentifiers merges the metric values and custom identifiers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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