Documentation ¶
Index ¶
- Constants
- func AddMetricDrift(jobID string, val float64)
- func AddMetricModelTime(jobID string, val float64)
- func InitMetric(unitScope, category, unitType string, idKeys []string)
- func SetMetricMAPE(jobID string, val float64)
- func SetMetricModelTime(jobID string, val float64)
- func SetMetricRMSE(jobID string, val float64)
- type Exporter
- func (exporter *Exporter) AddApplicationMetricDrift(clusterID, ns, name, dataGranularity, metricType string, exportTimestamp int64, ...)
- func (exporter *Exporter) AddClusterMetricDrift(name, dataGranularity, metricType string, exportTimestamp int64, val float64)
- func (exporter *Exporter) AddContainerMetricDrift(clusterID, podNS, podName, name, dataGranularity, metricType string, ...)
- func (exporter *Exporter) AddControllerMetricDrift(clusterID, ns, name, kind, dataGranularity, metricType string, ...)
- func (exporter *Exporter) AddGPUMetricDrift(clusterID, host, minor_number, dataGranularity, metricType string, ...)
- func (exporter *Exporter) AddNamespaceMetricDrift(clusterID, name, dataGranularity, metricType string, exportTimestamp int64, ...)
- func (exporter *Exporter) AddNodeMetricDrift(clusterID, name, dataGranularity, metricType string, exportTimestamp int64, ...)
- func (exporter *Exporter) ExportApplicationMetricModelTime(clusterID, ns, name, dataGranularity, metricType string, exportTimestamp int64, ...)
- func (exporter *Exporter) ExportClusterMetricModelTime(name, dataGranularity, metricType string, exportTimestamp int64, val float64)
- func (exporter *Exporter) ExportContainerMetricModelTime(clusterID, podNS, podName, ctname, dataGranularity, metricType string, ...)
- func (exporter *Exporter) ExportControllerMetricModelTime(clusterID, ns, name, kind, dataGranularity, metricType string, ...)
- func (exporter *Exporter) ExportGPUMetricModelTime(clusterID, host, minor_number, dataGranularity, metricType string, ...)
- func (exporter *Exporter) ExportNamespaceMetricModelTime(clusterID, name, dataGranularity, metricType string, exportTimestamp int64, ...)
- func (exporter *Exporter) ExportNodeMetricModelTime(clusterID, name, dataGranularity, metricType string, exportTimestamp int64, ...)
- func (exporter *Exporter) SetApplicationMetricMAPE(clusterID, ns, name, dataGranularity, metricType string, exportTimestamp int64, ...)
- func (exporter *Exporter) SetApplicationMetricRMSE(clusterID, ns, name, dataGranularity, metricType string, exportTimestamp int64, ...)
- func (exporter *Exporter) SetClusterMetricMAPE(name, dataGranularity, metricType string, exportTimestamp int64, val float64)
- func (exporter *Exporter) SetClusterMetricRMSE(name, dataGranularity, metricType string, exportTimestamp int64, val float64)
- func (exporter *Exporter) SetContainerMetricMAPE(clusterID, podNS, podName, name, dataGranularity, metricType string, ...)
- func (exporter *Exporter) SetContainerMetricRMSE(clusterID, podNS, podName, name, dataGranularity, metricType string, ...)
- func (exporter *Exporter) SetControllerMetricMAPE(clusterID, ns, name, kind, dataGranularity, metricType string, ...)
- func (exporter *Exporter) SetControllerMetricRMSE(clusterID, ns, name, kind, dataGranularity, metricType string, ...)
- func (exporter *Exporter) SetGPUMetricMAPE(clusterID, host, minor_number, dataGranularity, metricType string, ...)
- func (exporter *Exporter) SetGPUMetricRMSE(clusterID, host, minor_number, dataGranularity, metricType string, ...)
- func (exporter *Exporter) SetNamespaceMetricMAPE(clusterID, name, dataGranularity, metricType string, exportTimestamp int64, ...)
- func (exporter *Exporter) SetNamespaceMetricRMSE(clusterID, name, dataGranularity, metricType string, exportTimestamp int64, ...)
- func (exporter *Exporter) SetNodeMetricMAPE(clusterID, name, dataGranularity, metricType string, exportTimestamp int64, ...)
- func (exporter *Exporter) SetNodeMetricRMSE(clusterID, name, dataGranularity, metricType string, exportTimestamp int64, ...)
Constants ¶
View Source
const ( MetricTypeLabelDataGranularity30s = "30s" MetricTypeLabelDataGranularity1h = "1h" MetricTypeLabelDataGranularity6h = "6h" MetricTypeLabelDataGranularity24h = "24h" )
Variables ¶
This section is empty.
Functions ¶
func AddMetricDrift ¶
func AddMetricModelTime ¶
func InitMetric ¶
func SetMetricMAPE ¶
func SetMetricModelTime ¶
func SetMetricRMSE ¶
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func NewExporter ¶
func NewExporter() *Exporter
func (*Exporter) AddApplicationMetricDrift ¶
func (*Exporter) AddClusterMetricDrift ¶
func (*Exporter) AddContainerMetricDrift ¶
func (*Exporter) AddControllerMetricDrift ¶
func (*Exporter) AddGPUMetricDrift ¶
func (*Exporter) AddNamespaceMetricDrift ¶
func (*Exporter) AddNodeMetricDrift ¶
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) SetApplicationMetricRMSE ¶
func (*Exporter) SetClusterMetricMAPE ¶
func (*Exporter) SetClusterMetricRMSE ¶
func (*Exporter) SetContainerMetricMAPE ¶
func (*Exporter) SetContainerMetricRMSE ¶
func (*Exporter) SetControllerMetricMAPE ¶
func (*Exporter) SetControllerMetricRMSE ¶
func (*Exporter) SetGPUMetricMAPE ¶
func (*Exporter) SetGPUMetricRMSE ¶
func (*Exporter) SetNamespaceMetricMAPE ¶
func (*Exporter) SetNamespaceMetricRMSE ¶
func (*Exporter) SetNodeMetricMAPE ¶
Click to show internal directories.
Click to hide internal directories.