2
0
Эх сурвалжийг харах

Remove debug logs

Signed-off-by: thomasvn <thomasnguyen96@gmail.com>
thomasvn 2 жил өмнө
parent
commit
7b2c14a676

+ 0 - 5
pkg/costmodel/metrics.go

@@ -664,9 +664,6 @@ func (cmme *CostModelMetricsEmitter) Start() bool {
 				cmme.PersistentVolumePriceRecorder.WithLabelValues(pv.Name, pv.Name, cacPv.ProviderID).Set(c)
 				cmme.PersistentVolumePriceRecorder.WithLabelValues(pv.Name, pv.Name, cacPv.ProviderID).Set(c)
 				labelKey := getKeyFromLabelStrings(pv.Name, pv.Name, cacPv.ProviderID)
 				labelKey := getKeyFromLabelStrings(pv.Name, pv.Name, cacPv.ProviderID)
 				pvSeen[labelKey] = true
 				pvSeen[labelKey] = true
-
-				// NOTE: cacPv.ProviderID is seemingly always an empty string
-				log.Infof("GTM-151: RECORD: pv %s cost %f labelKey %s", pv.Name, c, labelKey)
 			}
 			}
 
 
 			// Remove metrics on Nodes/LoadBalancers/Containers/PVs that no
 			// Remove metrics on Nodes/LoadBalancers/Containers/PVs that no
@@ -751,10 +748,8 @@ func (cmme *CostModelMetricsEmitter) Start() bool {
 				}
 				}
 			}
 			}
 			for labelString, seen := range pvSeen {
 			for labelString, seen := range pvSeen {
-				log.Infof("GTM-151: DELETE: labelString %s seen %t", labelString, seen)
 				if !seen {
 				if !seen {
 					labels := getLabelStringsFromKey(labelString)
 					labels := getLabelStringsFromKey(labelString)
-					log.Infof("GTM-151: DELETE: labels %s", labels)
 					ok := cmme.PersistentVolumePriceRecorder.DeleteLabelValues(labels...)
 					ok := cmme.PersistentVolumePriceRecorder.DeleteLabelValues(labels...)
 					if !ok {
 					if !ok {
 						log.Errorf("Metric emission: failed to delete PVPrice with labels: %v", labels)
 						log.Errorf("Metric emission: failed to delete PVPrice with labels: %v", labels)