Просмотр исходного кода

Merge pull request #993 from kubecost/mmd/cherry-pick-gpu-price-fix

Emit the node_gpu_hourly_cost metric
Ajay Tripathy 4 лет назад
Родитель
Сommit
dcb992f0af
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      pkg/costmodel/metrics.go

+ 1 - 0
pkg/costmodel/metrics.go

@@ -472,6 +472,7 @@ func (cmme *CostModelMetricsEmitter) Start() bool {
 				}
 
 				cmme.GPUCountRecorder.WithLabelValues(nodeName, nodeName, nodeType, nodeRegion, node.ProviderID).Set(gpu)
+				cmme.GPUPriceRecorder.WithLabelValues(nodeName, nodeName, nodeType, nodeRegion, node.ProviderID).Set(gpuCost)
 
 				const outlierFactor float64 = 30
 				// don't record cpuCost, ramCost, or gpuCost in the case of wild outliers