Documentation ¶
Index ¶
Constants ¶
View Source
const Type config.Type = "load"
Type is the component type name.
Variables ¶
View Source
var L = Labels
L contains the possible metric labels that can be used. L is an alias for Labels.
View Source
var Labels = struct {
}{}
Labels contains the possible metric labels that can be used.
View Source
var M = Metrics
M contains a set of methods for each metric that help with manipulating those metrics. M is an alias for Metrics
View Source
var Metrics = &metricStruct{ &metricImpl{ "system.cpu.load_average.15m", func(metric pdata.Metric) { metric.SetName("system.cpu.load_average.15m") metric.SetDescription("Average CPU Load over 15 minutes.") metric.SetUnit("1") metric.SetDataType(pdata.MetricDataTypeGauge) }, }, &metricImpl{ "system.cpu.load_average.1m", func(metric pdata.Metric) { metric.SetName("system.cpu.load_average.1m") metric.SetDescription("Average CPU Load over 1 minute.") metric.SetUnit("1") metric.SetDataType(pdata.MetricDataTypeGauge) }, }, &metricImpl{ "system.cpu.load_average.5m", func(metric pdata.Metric) { metric.SetName("system.cpu.load_average.5m") metric.SetDescription("Average CPU Load over 5 minutes.") metric.SetUnit("1") metric.SetDataType(pdata.MetricDataTypeGauge) }, }, }
Metrics contains a set of methods for each metric that help with manipulating those metrics.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.