Documentation ¶
Index ¶
Constants ¶
View Source
const Type configmodels.Type = "hostmetricsreceiver"
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 LabelCPUState = struct { Idle string Interrupt string Nice string Softirq string Steal string System string User string Wait string }{ "idle", "interrupt", "nice", "softirq", "steal", "system", "user", "wait", }
LabelCPUState are the possible values that the label "cpu.state" can have.
View Source
var LabelMemState = struct { Buffered string Cached string Inactive string Free string SlabReclaimable string SlabUnreclaimable string Used string }{ "buffered", "cached", "inactive", "free", "slab_reclaimable", "slab_unreclaimable", "used", }
LabelMemState are the possible values that the label "mem.state" can have.
View Source
var Labels = struct { // Cpu (CPU number starting at 0.) Cpu string // CPUState (Breakdown of CPU usage by type.) CPUState string // MemState (Breakdown of memory usage by type.) MemState string }{ "cpu", "state", "state", }
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.time", func() pdata.Metric { metric := pdata.NewMetric() metric.SetName("system.cpu.time") metric.SetDescription("Total CPU seconds broken down by different states.") metric.SetUnit("s") metric.SetDataType(pdata.MetricDataTypeDoubleSum) metric.DoubleSum().SetIsMonotonic(true) metric.DoubleSum().SetAggregationTemporality(pdata.AggregationTemporalityCumulative) return metric }, }, &metricImpl{ "system.memory.usage", func() pdata.Metric { metric := pdata.NewMetric() metric.SetName("system.memory.usage") metric.SetDescription("Bytes of memory in use.") metric.SetUnit("By") metric.SetDataType(pdata.MetricDataTypeIntSum) metric.IntSum().SetIsMonotonic(false) metric.IntSum().SetAggregationTemporality(pdata.AggregationTemporalityCumulative) return metric }, }, }
Metrics contains a set of methods for each metric that help with manipulating those metrics.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.