Ver Fonte

Add resolution to normalization error logging

Niko Kovacevic há 6 anos atrás
pai
commit
9e211a5b1a
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      costmodel/costmodel.go

+ 2 - 2
costmodel/costmodel.go

@@ -1837,8 +1837,8 @@ func (cm *CostModel) costDataRange(cli prometheusClient.Client, clientset kubern
 
 
 	normalizationValue, err := getNormalizations(normalizationResults)
 	normalizationValue, err := getNormalizations(normalizationResults)
 	if err != nil {
 	if err != nil {
-		return nil, fmt.Errorf("error computing normalization for start=%s, end=%s, window=%s: %s",
-			start, end, window, err.Error())
+		return nil, fmt.Errorf("error computing normalization for start=%s, end=%s, window=%s, res=%f: %s",
+			start, end, window, resolutionHours*60*60, err.Error())
 	}
 	}
 
 
 	measureTime(profileStart, fmt.Sprintf("costDataRange(%fh): compute normalizations", durHrs))
 	measureTime(profileStart, fmt.Sprintf("costDataRange(%fh): compute normalizations", durHrs))