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) Generate ¶ added in v0.17.0
func (g *AgentGenerator) Generate() (Values, error)
Generate generates the memory usage of the running agent itself
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.