Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetricTypeCPUUsageSecondsPercentage MetricType = "cpu_usage_seconds_percentage" MetricTypeMemoryUsageBytes MetricType = "memory_usage_bytes" MetricTypePowerUsageWatts MetricType = "power_usage_watts" MetricTypeTemperatureCelsius MetricType = "temperature_celsius" MetricTypeDutyCycle MetricType = "duty_cycle" MetricTypeMemoryTotalBytes MetricType = "memory_total_bytes" MetricTypeMemoryAvailableBytes MetricType = "memory_available_bytes" MetricKindRaw MetricKind = "raw" MetricKindUpperBound MetricKind = "upper_bound" MetricKindLowerBound MetricKind = "lower_bound" )
Variables ¶
View Source
var MetricKindNameMap = map[ApiCommon.ResourceBoundary]MetricKind{ ApiCommon.ResourceBoundary_RESOURCE_RAW: MetricKindRaw, ApiCommon.ResourceBoundary_RESOURCE_UPPER_BOUND: MetricKindUpperBound, ApiCommon.ResourceBoundary_RESOURCE_LOWER_BOUND: MetricKindLowerBound, }
View Source
var TypeToDatahubMetricType map[string]ApiCommon.MetricType = map[string]ApiCommon.MetricType{ MetricTypeCPUUsageSecondsPercentage: ApiCommon.MetricType_CPU_MILLICORES_USAGE, MetricTypeMemoryUsageBytes: ApiCommon.MetricType_MEMORY_BYTES_USAGE, MetricTypePowerUsageWatts: ApiCommon.MetricType_POWER_USAGE_WATTS, MetricTypeTemperatureCelsius: ApiCommon.MetricType_TEMPERATURE_CELSIUS, MetricTypeDutyCycle: ApiCommon.MetricType_DUTY_CYCLE, TypeGpuDutyCycle: ApiCommon.MetricType_DUTY_CYCLE, TypeGpuDutyCycleLowerBound: ApiCommon.MetricType_DUTY_CYCLE, TypeGpuDutyCycleUpperBound: ApiCommon.MetricType_DUTY_CYCLE, TypeGpuMemoryUsedBytes: ApiCommon.MetricType_MEMORY_BYTES_USAGE, TypeGpuMemoryUsedBytesLowerBound: ApiCommon.MetricType_MEMORY_BYTES_USAGE, TypeGpuMemoryUsedBytesUpperBound: ApiCommon.MetricType_MEMORY_BYTES_USAGE, TypeGpuPowerUsageMilliWatts: ApiCommon.MetricType_POWER_USAGE_WATTS, TypeGpuPowerUsageMilliWattsLowerBound: ApiCommon.MetricType_POWER_USAGE_WATTS, TypeGpuPowerUsageMilliWattsUpperBound: ApiCommon.MetricType_POWER_USAGE_WATTS, TypeGpuTemperatureCelsius: ApiCommon.MetricType_TEMPERATURE_CELSIUS, TypeGpuTemperatureCelsiusLowerBound: ApiCommon.MetricType_TEMPERATURE_CELSIUS, TypeGpuTemperatureCelsiusUpperBound: ApiCommon.MetricType_TEMPERATURE_CELSIUS, }
TypeToDatahubMetricType Type to datahub metric type
Functions ¶
This section is empty.
Types ¶
type GpuMetricKind ¶
type GpuMetricKind = string
type GpuMetricType ¶
type GpuMetricType = string
GpuMetric Type/Kind alias
const ( 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" )
GPU metric type definition
type MetricKind ¶
type MetricKind = string
Click to show internal directories.
Click to hide internal directories.