|
|
@@ -32,6 +32,7 @@ const (
|
|
|
CSVPathEnvVar = "CSV_PATH"
|
|
|
ConfigPathEnvVar = "CONFIG_PATH"
|
|
|
CloudProviderAPIKeyEnvVar = "CLOUD_PROVIDER_API_KEY"
|
|
|
+ DisableCache = "DISABLE_CACHE"
|
|
|
|
|
|
EmitPodAnnotationsMetricEnvVar = "EMIT_POD_ANNOTATIONS_METRIC"
|
|
|
EmitNamespaceAnnotationsMetricEnvVar = "EMIT_NAMESPACE_ANNOTATIONS_METRIC"
|
|
|
@@ -239,6 +240,12 @@ func GetInsecureSkipVerify() bool {
|
|
|
return GetBool(InsecureSkipVerify, false)
|
|
|
}
|
|
|
|
|
|
+// IsCacheDisabled returns the environment variable value for DisableCache which
|
|
|
+// will inform the aggregator on whether to load cached data. Defaults to false
|
|
|
+func IsCacheDisabled() bool {
|
|
|
+ return GetBool(DisableCache, false)
|
|
|
+}
|
|
|
+
|
|
|
// IsRemoteEnabled returns the environment variable value for RemoteEnabledEnvVar which represents whether
|
|
|
// or not remote write is enabled for prometheus for use with SQL backed persistent storage.
|
|
|
func IsRemoteEnabled() bool {
|