Procházet zdrojové kódy

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 před 2 roky
rodič
revize
d76688d8ef
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)
 
-	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) {