Forráskód Böngészése

Merge pull request #1616 from jcharcalla/jcharcalla-IsThanosEnabled

Removed IsThanosEnabled check
Ajay Tripathy 3 éve
szülő
commit
e291d99fa0
1 módosított fájl, 2 hozzáadás és 8 törlés
  1. 2 8
      pkg/env/costmodelenv.go

+ 2 - 8
pkg/env/costmodelenv.go

@@ -481,15 +481,9 @@ func GetETLMaxPrometheusQueryDuration() time.Duration {
 
 // GetETLResolution determines the resolution of ETL queries. The smaller the
 // duration, the higher the resolution; the higher the resolution, the more
-// accurate the query results, but the more computationally expensive. This
-// value is always 1m for Prometheus, but is configurable for Thanos.
+// accurate the query results, but the more computationally expensive.
 func GetETLResolution() time.Duration {
-	// If Thanos is not enabled, hard-code to 1m resolution
-	if !IsThanosEnabled() {
-		return 60 * time.Second
-	}
-
-	// Thanos is enabled, so use the configured ETL resolution, or default to
+	// Use the configured ETL resolution, or default to
 	// 5m (i.e. 300s)
 	secs := time.Duration(GetInt64(ETLResolutionSeconds, 300))
 	return secs * time.Second