|
|
@@ -477,6 +477,7 @@ func GetETLMaxPrometheusQueryDuration() time.Duration {
|
|
|
dayMins := 60 * 24
|
|
|
mins := time.Duration(GetInt64(ETLMaxPrometheusQueryDurationMinutes, int64(dayMins)))
|
|
|
return mins * time.Minute
|
|
|
+}
|
|
|
|
|
|
// GetETLResolution determines the resolution of ETL queries. The smaller the
|
|
|
// duration, the higher the resolution; the higher the resolution, the more
|
|
|
@@ -487,8 +488,6 @@ func GetETLResolution() time.Duration {
|
|
|
secs := time.Duration(GetInt64(ETLResolutionSeconds, 300))
|
|
|
return secs * time.Second
|
|
|
}
|
|
|
-
|
|
|
-}
|
|
|
|
|
|
func LegacyExternalCostsAPIDisabled() bool {
|
|
|
return GetBool(LegacyExternalAPIDisabledVar, false)
|