|
@@ -114,9 +114,9 @@ const (
|
|
|
|
|
|
|
|
DataRetentionDailyResolutionDaysEnvVar = "DATA_RETENTION_DAILY_RESOLUTION_DAYS"
|
|
DataRetentionDailyResolutionDaysEnvVar = "DATA_RETENTION_DAILY_RESOLUTION_DAYS"
|
|
|
|
|
|
|
|
- CloudCostEnabledEnvVar = "CLOUD_COST_ENABLED"
|
|
|
|
|
KubernetesEnabledEnvVar = "KUBERNETES_ENABLED"
|
|
KubernetesEnabledEnvVar = "KUBERNETES_ENABLED"
|
|
|
- CloudIntegrationSecretPath = "CLOUD_INTEGRATION_SECRET_PATH"
|
|
|
|
|
|
|
+ CloudCostEnabledEnvVar = "CLOUD_COST_ENABLED"
|
|
|
|
|
+ CloudCostConfigPath = "CLOUD_COST_CONFIG_PATH"
|
|
|
CloudCostMonthToDateIntervalVar = "CLOUD_COST_MONTH_TO_DATE_INTERVAL"
|
|
CloudCostMonthToDateIntervalVar = "CLOUD_COST_MONTH_TO_DATE_INTERVAL"
|
|
|
CloudCostRefreshRateHoursEnvVar = "CLOUD_COST_REFRESH_RATE_HOURS"
|
|
CloudCostRefreshRateHoursEnvVar = "CLOUD_COST_REFRESH_RATE_HOURS"
|
|
|
CloudCostQueryWindowDaysEnvVar = "CLOUD_COST_QUERY_WINDOW_DAYS"
|
|
CloudCostQueryWindowDaysEnvVar = "CLOUD_COST_QUERY_WINDOW_DAYS"
|
|
@@ -637,16 +637,16 @@ func GetDataRetentionDailyResolutionDays() int64 {
|
|
|
return GetInt64(DataRetentionDailyResolutionDaysEnvVar, 15)
|
|
return GetInt64(DataRetentionDailyResolutionDaysEnvVar, 15)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func IsCloudCostEnabled() bool {
|
|
|
|
|
- return GetBool(CloudCostEnabledEnvVar, false)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func IsKubernetesEnabled() bool {
|
|
func IsKubernetesEnabled() bool {
|
|
|
return GetBool(KubernetesEnabledEnvVar, true)
|
|
return GetBool(KubernetesEnabledEnvVar, true)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func GetCloudIntegrationSecretPath() string {
|
|
|
|
|
- return Get(CloudIntegrationSecretPath, "cloud-integration.json")
|
|
|
|
|
|
|
+func IsCloudCostEnabled() bool {
|
|
|
|
|
+ return GetBool(CloudCostEnabledEnvVar, false)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func GetCloudCostConfigPath() string {
|
|
|
|
|
+ return Get(CloudCostConfigPath, "cloud-integration.json")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func GetCloudCostMonthToDateInterval() int {
|
|
func GetCloudCostMonthToDateInterval() int {
|