Niko Kovacevic 4 лет назад
Родитель
Сommit
a1abd058b3
2 измененных файлов с 0 добавлено и 7 удалено
  1. 0 2
      pkg/kubecost/asset.go
  2. 0 5
      pkg/kubecost/config.go

+ 0 - 2
pkg/kubecost/asset.go

@@ -156,8 +156,6 @@ func AssetToExternalAllocation(asset Asset, aggregateBy []string, labelConfig *L
 	for _, aggBy := range aggregateBy {
 		name := labelConfig.GetExternalAllocationName(asset.Labels(), aggBy)
 
-		log.Infof("External: %s => %s", asset.Properties().Name, name)
-
 		if name == "" {
 			// No matching label has been defined in the cost-analyzer label config
 			// relating to the given aggregateBy property.

+ 0 - 5
pkg/kubecost/config.go

@@ -4,7 +4,6 @@ import (
 	"fmt"
 	"strings"
 
-	"github.com/kubecost/cost-model/pkg/log"
 	"github.com/kubecost/cost-model/pkg/prom"
 	"github.com/kubecost/cost-model/pkg/util/cloudutil"
 )
@@ -235,8 +234,6 @@ func (lc *LabelConfig) GetExternalAllocationName(labels map[string]string, aggre
 		}
 	}
 
-	log.Infof("External: aggregate by %s: labelNames: %v", aggregateBy, labelNames)
-
 	// No label is set for the given aggregation property.
 	if len(labelNames) == 0 {
 		return ""
@@ -265,8 +262,6 @@ func (lc *LabelConfig) GetExternalAllocationName(labels map[string]string, aggre
 		}
 	}
 
-	log.Infof("External: aggregate by %s: %s = %s", aggregateBy, labelName, labelValue)
-
 	// No match found
 	if labelName == "" {
 		return ""