metric

package
v4.2.501+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Node metric type definition
	TypeNodeCPUUsageSecondsPercentage NodeMetricType = "node_cpu_usage_seconds_percentage"
	TypeNodeMemoryTotalBytes          NodeMetricType = "node_memory_total_bytes"
	TypeNodeMemoryAvailableBytes      NodeMetricType = "node_memory_available_bytes"
	TypeNodeMemoryUsageBytes          NodeMetricType = "node_memory_usage_bytes"

	// Container metric type definition
	TypeContainerCPUUsageSecondsPercentage ContainerMetricType = "cpu_usage_seconds_percentage"
	TypeContainerMemoryUsageBytes          ContainerMetricType = "memory_usage_bytes"

	// GPU metric type definition
	TypeGpuDutyCycle                      GpuMetricType = "gpu_duty_cycle"
	TypeGpuDutyCycleLowerBound            GpuMetricType = "gpu_duty_cycle_lower_bound"
	TypeGpuDutyCycleUpperBound            GpuMetricType = "gpu_duty_cycle_upper_bound"
	TypeGpuMemoryUsedBytes                GpuMetricType = "gpu_memory_used_bytes"
	TypeGpuMemoryUsedBytesLowerBound      GpuMetricType = "gpu_memory_used_bytes_lower_bound"
	TypeGpuMemoryUsedBytesUpperBound      GpuMetricType = "gpu_memory_used_bytes_upper_bound"
	TypeGpuPowerUsageMilliWatts           GpuMetricType = "gpu_power_usage_milli_watts"
	TypeGpuPowerUsageMilliWattsLowerBound GpuMetricType = "gpu_power_usage_milli_watts_lower_bound"
	TypeGpuPowerUsageMilliWattsUpperBound GpuMetricType = "gpu_power_usage_milli_watts_upper_bound"
	TypeGpuTemperatureCelsius             GpuMetricType = "gpu_temperature_celsius"
	TypeGpuTemperatureCelsiusLowerBound   GpuMetricType = "gpu_temperature_celsius_lower_bound"
	TypeGpuTemperatureCelsiusUpperBound   GpuMetricType = "gpu_temperature_celsius_upper_bound"
)
View Source
const (
	ContainerMetricKindRaw        ContainerMetricKind = "raw"
	ContainerMetricKindUpperbound ContainerMetricKind = "upper_bound"
	ContainerMetricKindLowerbound ContainerMetricKind = "lower_bound"

	NodeMetricKindRaw        NodeMetricKind = "raw"
	NodeMetricKindUpperbound NodeMetricKind = "upper_bound"
	NodeMetricKindLowerbound NodeMetricKind = "lower_bound"
)

Variables

Functions

This section is empty.

Types

type ContainerMetricKind added in v0.3.10

type ContainerMetricKind = string

type ContainerMetricType

type ContainerMetricType = string

ContainerMetric Type/Kind alias

type GpuMetricKind

type GpuMetricKind = string

type GpuMetricType

type GpuMetricType = string

GpuMetric Type/Kind alias

type NodeMetricKind added in v0.3.11

type NodeMetricKind = string

type NodeMetricType

type NodeMetricType = string

NodeMetric Type/Kind alias

type Sample

type Sample struct {
	Timestamp time.Time
	Value     string
}

Sample Data struct representing timestamp and metric value of metric data point

type SamplesByAscTimestamp added in v0.3.0

type SamplesByAscTimestamp []Sample

func (SamplesByAscTimestamp) Len added in v0.3.0

func (d SamplesByAscTimestamp) Len() int

func (SamplesByAscTimestamp) Less added in v0.3.0

func (d SamplesByAscTimestamp) Less(i, j int) bool

func (SamplesByAscTimestamp) Swap added in v0.3.0

func (d SamplesByAscTimestamp) Swap(i, j int)

type SamplesByDescTimestamp added in v0.3.0

type SamplesByDescTimestamp []Sample

func (SamplesByDescTimestamp) Len added in v0.3.0

func (d SamplesByDescTimestamp) Len() int

func (SamplesByDescTimestamp) Less added in v0.3.0

func (d SamplesByDescTimestamp) Less(i, j int) bool

func (SamplesByDescTimestamp) Swap added in v0.3.0

func (d SamplesByDescTimestamp) Swap(i, j int)

Jump to

Keyboard shortcuts

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