Sfoglia il codice sorgente

Reduce volume of this query, which can happen for storage classes of type "default"

Ajay Tripathy 5 anni fa
parent
commit
8166d804ba
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      pkg/costmodel/promparsers.go

+ 1 - 1
pkg/costmodel/promparsers.go

@@ -62,7 +62,7 @@ func GetPVInfo(qrs []*prom.QueryResult, defaultClusterID string) (map[string]*Pe
 		pvClass, err := val.GetString("storageclass")
 		if err != nil {
 			// TODO: We need to look up the actual PV and PV capacity. For now just proceed with "".
-			log.Warningf("Storage Class not found for claim \"%s/%s\".", ns, pvcName)
+			log.DedupedWarningf(5, "Storage Class not found for claim \"%s/%s\".", ns, pvcName)
 			pvClass = ""
 		}