metrics

package
v4.2.708+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MetricTypeLabelDataGranularity30s = "30s"
	MetricTypeLabelDataGranularity1h  = "1h"
	MetricTypeLabelDataGranularity6h  = "6h"
	MetricTypeLabelDataGranularity24h = "24h"
)

Variables

This section is empty.

Functions

func AddMetricDrift

func AddMetricDrift(jobID string, val float64)

func AddMetricModelTime

func AddMetricModelTime(jobID string, val float64)

func InitMetric

func InitMetric(unitScope, category, unitType string, idKeys []string)

func SetMetricMAPE

func SetMetricMAPE(jobID string, val float64)

func SetMetricModelTime

func SetMetricModelTime(jobID string, val float64)

func SetMetricRMSE

func SetMetricRMSE(jobID string, val float64)

Types

type Exporter

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

func NewExporter

func NewExporter() *Exporter

func (*Exporter) AddApplicationMetricDrift

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

func (*Exporter) AddClusterMetricDrift

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

func (*Exporter) AddContainerMetricDrift

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

func (*Exporter) AddControllerMetricDrift

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

func (*Exporter) AddGPUMetricDrift

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

func (*Exporter) AddNamespaceMetricDrift

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

func (*Exporter) AddNodeMetricDrift

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

func (*Exporter) ExportApplicationMetricModelTime

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

Application

func (*Exporter) ExportClusterMetricModelTime

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

Cluster

func (*Exporter) ExportContainerMetricModelTime

func (exporter *Exporter) ExportContainerMetricModelTime(clusterID,
	podNS, podName, ctname, dataGranularity, metricType string, exportTimestamp int64, val float64)

Pod

func (*Exporter) ExportControllerMetricModelTime

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

Controller

func (*Exporter) ExportGPUMetricModelTime

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

GPU

func (*Exporter) ExportNamespaceMetricModelTime

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

Namespace

func (*Exporter) ExportNodeMetricModelTime

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

Node

func (*Exporter) SetApplicationMetricMAPE

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

func (*Exporter) SetApplicationMetricRMSE

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

func (*Exporter) SetClusterMetricMAPE

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

func (*Exporter) SetClusterMetricRMSE

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

func (*Exporter) SetContainerMetricMAPE

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

func (*Exporter) SetContainerMetricRMSE

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

func (*Exporter) SetControllerMetricMAPE

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

func (*Exporter) SetControllerMetricRMSE

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

func (*Exporter) SetGPUMetricMAPE

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

func (*Exporter) SetGPUMetricRMSE

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

func (*Exporter) SetNamespaceMetricMAPE

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

func (*Exporter) SetNamespaceMetricRMSE

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

func (*Exporter) SetNodeMetricMAPE

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

func (*Exporter) SetNodeMetricRMSE

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

Jump to

Keyboard shortcuts

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