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
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 InterfaceGenerator ¶
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 ValuesCustomIdentifier ¶ added in v0.31.0
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