Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Container metric type definition TypeContainerCPUUsageSecondsPercentage ContainerMetricType = "cpu_usage_seconds_percentage" TypeContainerMemoryUsageBytes ContainerMetricType = "memory_usage_bytes" // 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" // 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 ¶
View Source
var ( // TypeToDatahubMetricType Type to datahub metric type TypeToDatahubMetricType = map[string]datahub_v1alpha1.MetricType{ TypeContainerCPUUsageSecondsPercentage: datahub_v1alpha1.MetricType_CPU_USAGE_SECONDS_PERCENTAGE, TypeContainerMemoryUsageBytes: datahub_v1alpha1.MetricType_MEMORY_USAGE_BYTES, TypeNodeCPUUsageSecondsPercentage: datahub_v1alpha1.MetricType_CPU_USAGE_SECONDS_PERCENTAGE, TypeNodeMemoryUsageBytes: datahub_v1alpha1.MetricType_MEMORY_USAGE_BYTES, TypeGpuDutyCycle: datahub_v1alpha1.MetricType_DUTY_CYCLE, TypeGpuDutyCycleLowerBound: datahub_v1alpha1.MetricType_DUTY_CYCLE, TypeGpuDutyCycleUpperBound: datahub_v1alpha1.MetricType_DUTY_CYCLE, TypeGpuMemoryUsedBytes: datahub_v1alpha1.MetricType_MEMORY_USAGE_BYTES, TypeGpuMemoryUsedBytesLowerBound: datahub_v1alpha1.MetricType_MEMORY_USAGE_BYTES, TypeGpuMemoryUsedBytesUpperBound: datahub_v1alpha1.MetricType_MEMORY_USAGE_BYTES, TypeGpuPowerUsageMilliWatts: datahub_v1alpha1.MetricType_POWER_USAGE_WATTS, TypeGpuPowerUsageMilliWattsLowerBound: datahub_v1alpha1.MetricType_POWER_USAGE_WATTS, TypeGpuPowerUsageMilliWattsUpperBound: datahub_v1alpha1.MetricType_POWER_USAGE_WATTS, TypeGpuTemperatureCelsius: datahub_v1alpha1.MetricType_TEMPERATURE_CELSIUS, TypeGpuTemperatureCelsiusLowerBound: datahub_v1alpha1.MetricType_TEMPERATURE_CELSIUS, TypeGpuTemperatureCelsiusUpperBound: datahub_v1alpha1.MetricType_TEMPERATURE_CELSIUS, } )
Functions ¶
This section is empty.
Types ¶
type ContainerMetricKind ¶ added in v0.3.10
type ContainerMetricKind = string
type GpuMetricKind ¶
type GpuMetricKind = string
type NodeMetricKind ¶ added in v0.3.11
type NodeMetricKind = string
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)
Click to show internal directories.
Click to hide internal directories.