hostmetrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyMutator = func(pmetric.NumberDataPoint) {}

EmptyMutator is a no-op mutator.

Functions

func AddMetrics

func AddMetrics(
	ms pmetric.MetricSlice,
	dataset string,
	mutator func(dp pmetric.NumberDataPoint),
	metrics ...Metric,
)

AddMetrics adds a list of remapped OTel metric to the give MetricSlice.

Types

type Metric

type Metric struct {
	IntValue       *int64
	DoubleValue    *float64
	Name           string
	Timestamp      pcommon.Timestamp
	StartTimestamp pcommon.Timestamp
	DataType       pmetric.MetricType
}

Metric is a simplified representation of a remapped OTel metric.

Jump to

Keyboard shortcuts

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