|
|
@@ -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
|