Explorar o código

Bump logs to info

Christian Petersen hai 1 mes
pai
achega
fcaa2d8edc
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  1. 1 1
      pkg/costmodel/allocation.go
  2. 3 3
      pkg/costmodel/allocation_helpers.go

+ 1 - 1
pkg/costmodel/allocation.go

@@ -566,7 +566,7 @@ func (cm *CostModel) computeAllocation(start, end time.Time) (*opencost.Allocati
 		}
 	}
 	if droppedNoContainers > 0 {
-		log.Debugf("CostModel.ComputeAllocation: emitted %d pods, dropped %d pods with no container allocations (sample: %v)",
+		log.Infof("CostModel.ComputeAllocation: emitted %d pods, dropped %d pods with no container allocations (sample: %v)",
 			emittedPods, droppedNoContainers, droppedSamples)
 	}
 

+ 3 - 3
pkg/costmodel/allocation_helpers.go

@@ -92,7 +92,7 @@ func (cm *CostModel) buildPodMap(window opencost.Window, podMap map[podKey]*pod,
 		}
 
 		if len(droppedNoUID) > 0 {
-			log.Debugf("CostModel.ComputeAllocation: dropped %d pod results lacking UID during UID-ingestion filter: %v", len(droppedNoUID), droppedNoUID)
+			log.Infof("CostModel.ComputeAllocation: dropped %d pod results lacking UID during UID-ingestion filter: %v", len(droppedNoUID), droppedNoUID)
 		}
 
 		if len(resPodsUID) > 0 {
@@ -104,7 +104,7 @@ func (cm *CostModel) buildPodMap(window opencost.Window, podMap map[podKey]*pod,
 
 	preApplyMapSize := len(podMap)
 	applyPodResults(window, resolution, podMap, resPods, ingestPodUID, podUIDKeyMap)
-	log.Debugf("CostModel.ComputeAllocation: buildPodMap window=%s: prom returned %d pod results, %d post-UID-filter, podMap grew by %d (now %d)",
+	log.Infof("CostModel.ComputeAllocation: buildPodMap window=%s: prom returned %d pod results, %d post-UID-filter, podMap grew by %d (now %d)",
 		window, preFilterCount, len(resPods), len(podMap)-preApplyMapSize, len(podMap))
 
 	return nil
@@ -154,7 +154,7 @@ func applyPodResults(window opencost.Window, resolution time.Duration, podMap ma
 
 		allocStart, allocEnd := calculateStartAndEnd(res.Data, resolution, window)
 		if allocStart.IsZero() || allocEnd.IsZero() {
-			log.Debugf("CostModel.ComputeAllocation: dropping pod %s/%s (cluster=%s, uid=%q): zero allocStart/allocEnd from %d data points, window=%s",
+			log.Infof("CostModel.ComputeAllocation: dropping pod %s/%s (cluster=%s, uid=%q): zero allocStart/allocEnd from %d data points, window=%s",
 				namespace, podName, cluster, res.UID, len(res.Data), window)
 			continue
 		}