metadata

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Type configmodels.Type = "hostmetricsreceiver"

Type is the component type name.

Variables

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 Metrics = struct {
	// SystemCPUTime in s (Total CPU seconds broken down by different states.)
	SystemCPUTime pdata.Metric
	// SystemMemoryUsage in By (Bytes of memory in use.)
	SystemMemoryUsage pdata.Metric
}{
	func() pdata.Metric {
		metric := pdata.NewMetric()
		metric.InitEmpty()
		metric.SetName("system.cpu.time")
		metric.SetDescription("Total CPU seconds broken down by different states.")
		metric.SetUnit("s")
		metric.SetDataType(pdata.MetricDataTypeDoubleSum)
		data := metric.DoubleSum()
		data.InitEmpty()
		data.SetIsMonotonic(true)
		data.SetAggregationTemporality(pdata.AggregationTemporalityCumulative)

		return metric
	}(),
	func() pdata.Metric {
		metric := pdata.NewMetric()
		metric.InitEmpty()
		metric.SetName("system.memory.usage")
		metric.SetDescription("Bytes of memory in use.")
		metric.SetUnit("By")
		metric.SetDataType(pdata.MetricDataTypeIntSum)
		data := metric.IntSum()
		data.InitEmpty()
		data.SetIsMonotonic(false)
		data.SetAggregationTemporality(pdata.AggregationTemporalityCumulative)

		return metric
	}(),
}

Metrics contains the metric descriptors for the possible metrics.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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