Pārlūkot izejas kodu

GCP Provider Cluster Filter Fix (#2116)

Unsure as to why this went untested, but this should correctly fix the query formatting.

Signed-off-by: Matt Bolt <mbolt35@gmail.com>
Matt Bolt 2 gadi atpakaļ
vecāks
revīzija
d76688d8ef
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      pkg/cloud/gcp/provider.go

+ 1 - 1
pkg/cloud/gcp/provider.go

@@ -153,7 +153,7 @@ func (gcp *GCP) GetLocalStorageQuery(window, offset time.Duration, rate bool, us
 	}
 	}
 	fmtWindow := timeutil.DurationString(window)
 	fmtWindow := timeutil.DurationString(window)
 
 
-	return fmt.Sprintf(fmtQuery, env.GetPromClusterFilter(), baseMetric, fmtWindow, fmtOffset, env.GetPromClusterLabel(), localStorageCost)
+	return fmt.Sprintf(fmtQuery, baseMetric, env.GetPromClusterFilter(), fmtWindow, fmtOffset, env.GetPromClusterLabel(), localStorageCost)
 }
 }
 
 
 func (gcp *GCP) GetConfig() (*models.CustomPricing, error) {
 func (gcp *GCP) GetConfig() (*models.CustomPricing, error) {