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

drop N/A and leave non-existence as empty string

Calvin Wang 5 лет назад
Родитель
Сommit
13dc65a6d4
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      pkg/costmodel/metrics.go

+ 0 - 2
pkg/costmodel/metrics.go

@@ -521,8 +521,6 @@ func StartCostModelMetricRecording(a *Accesses) bool {
 				ingressIP := ""
 				if len(lb.IngressIPAddresses) > 0 {
 					ingressIP = lb.IngressIPAddresses[0] // assumes one ingress IP per load balancer
-				} else {
-					ingressIP = "N/A"
 				}
 				a.LBCostRecorder.WithLabelValues(ingressIP, namespace, serviceName).Set(lb.Cost)