metrics

package
v4.2.538+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: Apache-2.0 Imports: 3 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) AddApplicationMetricDrift

func (exporter *Exporter) AddApplicationMetricDrift(ns, name,
	dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) AddClusterMetricDrift

func (exporter *Exporter) AddClusterMetricDrift(
	name, dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) AddControllerMetricDrift

func (exporter *Exporter) AddControllerMetricDrift(ns, name, kind,
	dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) AddGPUMetricDrift

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

func (*Exporter) AddNamespaceMetricDrift

func (exporter *Exporter) AddNamespaceMetricDrift(
	name, dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) AddNodeMetricDrift

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

func (*Exporter) AddPodMetricDrift added in v0.9.205

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

func (*Exporter) ExportApplicationMetricModelTime

func (exporter *Exporter) ExportApplicationMetricModelTime(ns, name,
	dataGranularity string, exportTimestamp int64, val float64)

Application

func (*Exporter) ExportClusterMetricModelTime

func (exporter *Exporter) ExportClusterMetricModelTime(
	name, dataGranularity string, exportTimestamp int64, val float64)

Cluster

func (*Exporter) ExportControllerMetricModelTime

func (exporter *Exporter) ExportControllerMetricModelTime(ns, name, kind,
	dataGranularity string, exportTimestamp int64, val float64)

Controller

func (*Exporter) ExportGPUMetricModelTime

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

GPU

func (*Exporter) ExportNamespaceMetricModelTime

func (exporter *Exporter) ExportNamespaceMetricModelTime(
	name, dataGranularity string, exportTimestamp int64, val float64)

Namespace

func (*Exporter) ExportNodeMetricModelTime

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

Node

func (*Exporter) ExportPodMetricModelTime added in v0.9.205

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

Pod

func (*Exporter) SetApplicationMetricMAPE

func (exporter *Exporter) SetApplicationMetricMAPE(ns, name,
	metricType, dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) SetApplicationMetricRMSE

func (exporter *Exporter) SetApplicationMetricRMSE(ns, name,
	metricType, dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) SetClusterMetricMAPE

func (exporter *Exporter) SetClusterMetricMAPE(
	name, metricType, dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) SetClusterMetricRMSE

func (exporter *Exporter) SetClusterMetricRMSE(
	name, metricType, dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) SetContainerMetricMAPE

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

func (*Exporter) SetContainerMetricRMSE

func (exporter *Exporter) SetContainerMetricRMSE(
	podNS, podName, name, metricType, dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) SetControllerMetricMAPE

func (exporter *Exporter) SetControllerMetricMAPE(ns, name, kind,
	metricType, dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) SetControllerMetricRMSE

func (exporter *Exporter) SetControllerMetricRMSE(ns, name, kind,
	metricType, dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) SetGPUMetricMAPE

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

func (*Exporter) SetGPUMetricRMSE

func (exporter *Exporter) SetGPUMetricRMSE(host, minor_number,
	metricType, dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) SetNamespaceMetricMAPE

func (exporter *Exporter) SetNamespaceMetricMAPE(
	name, metricType, dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) SetNamespaceMetricRMSE

func (exporter *Exporter) SetNamespaceMetricRMSE(
	name, metricType, dataGranularity string, exportTimestamp int64, val float64)

func (*Exporter) SetNodeMetricMAPE

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

func (*Exporter) SetNodeMetricRMSE

func (exporter *Exporter) SetNodeMetricRMSE(
	name, metricType, dataGranularity string, exportTimestamp int64, val float64)

Jump to

Keyboard shortcuts

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