metrics

package
v4.2.462+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MetricTypeLabelCPUUsageSecondsPercentage = "CPU_USAGE_SECONDS_PERCENTAGE"
	MetricTypeLabelMemoryUsageBytes          = "MEMORY_USAGE_BYTES"
	MetricTypeLabelPowerUsageWatts           = "POWER_USAGE_WATTS"
	MetricTypeLabelTemperatureCelsius        = "TEMPERATURE_CELSIUS"
	MetricTypeLabelDutyCycle                 = "DUTY_CYCLE"
)
View Source
const (
	MetricTypeLabelDataGranularity30s = "30s"
	MetricTypeLabelDataGranularity1h  = "1h"
	MetricTypeLabelDataGranularity6h  = "6h"
	MetricTypeLabelDataGranularity24h = "24h"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

func NewExporter

func NewExporter() *Exporter

func (*Exporter) AddGPUMetricDrift

func (exporter *Exporter) AddGPUMetricDrift(host, minor_number,
	dataGranularity string, val float64)

func (*Exporter) AddNodeMetricDrift

func (exporter *Exporter) AddNodeMetricDrift(
	name, dataGranularity string, val float64)

func (*Exporter) AddPodMetricDrift added in v0.9.205

func (exporter *Exporter) AddPodMetricDrift(
	podNS, podName, dataGranularity string, val float64)

func (*Exporter) ExportGPUMetricModelTime

func (exporter *Exporter) ExportGPUMetricModelTime(host, minor_number,
	dataGranularity string, val float64)

func (*Exporter) ExportNodeMetricModelTime

func (exporter *Exporter) ExportNodeMetricModelTime(
	name, dataGranularity string, val float64)

func (*Exporter) ExportPodMetricModelTime added in v0.9.205

func (exporter *Exporter) ExportPodMetricModelTime(
	podNS, podName, dataGranularity string, val float64)

func (*Exporter) SetContainerMetricMAPE

func (exporter *Exporter) SetContainerMetricMAPE(
	podNS, podName, name, metricType, dataGranularity string, val float64)

func (*Exporter) SetGPUMetricMAPE

func (exporter *Exporter) SetGPUMetricMAPE(host, minor_number,
	metricType, dataGranularity string, val float64)

func (*Exporter) SetNodeMetricMAPE

func (exporter *Exporter) SetNodeMetricMAPE(
	name, metricType, dataGranularity string, val float64)

Jump to

Keyboard shortcuts

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