|
|
@@ -477,11 +477,6 @@ func GetETLMaxPrometheusQueryDuration() time.Duration {
|
|
|
dayMins := 60 * 24
|
|
|
mins := time.Duration(GetInt64(ETLMaxPrometheusQueryDurationMinutes, int64(dayMins)))
|
|
|
return mins * time.Minute
|
|
|
-}
|
|
|
-
|
|
|
-func LegacyExternalCostsAPIDisabled() bool {
|
|
|
- return GetBool(LegacyExternalAPIDisabledVar, false)
|
|
|
-}
|
|
|
|
|
|
// GetETLResolution determines the resolution of ETL queries. The smaller the
|
|
|
// duration, the higher the resolution; the higher the resolution, the more
|
|
|
@@ -493,6 +488,12 @@ func GetETLResolution() time.Duration {
|
|
|
return secs * time.Second
|
|
|
}
|
|
|
|
|
|
+}
|
|
|
+
|
|
|
+func LegacyExternalCostsAPIDisabled() bool {
|
|
|
+ return GetBool(LegacyExternalAPIDisabledVar, false)
|
|
|
+}
|
|
|
+
|
|
|
// GetPromClusterLabel returns the environemnt variable value for PromClusterIDLabel
|
|
|
func GetPromClusterLabel() string {
|
|
|
return Get(PromClusterIDLabelEnvVar, "cluster_id")
|