From 455698fd73146be6fafd6ec1463e3faa72cce310 Mon Sep 17 00:00:00 2001 From: Itai Admi Date: Mon, 4 Nov 2024 16:41:24 +0200 Subject: [PATCH 1/2] Usage report saved by default --- docs/reference/configuration.md | 2 +- pkg/config/defaults.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index b0e450e0f92..ec387b84fd0 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -310,7 +310,7 @@ An object describing the local (on-disk) cache of metadata from permanent storag ### usage_report -* `usage_report.enabled` `(bool : false)` - Store API and Gateway usage reports into key-value store. +* `usage_report.enabled` `(bool : true)` - Store API and Gateway usage reports into key-value store. * `usage_report.flush_interval` `(duration : 5m)` - Sets interval for flushing in-memory usage data to key-value store. ### ui diff --git a/pkg/config/defaults.go b/pkg/config/defaults.go index 9d566fabced..6033ff72040 100644 --- a/pkg/config/defaults.go +++ b/pkg/config/defaults.go @@ -170,5 +170,6 @@ func setDefaults(cfgType string) { viper.SetDefault("ugc.prepare_interval", time.Minute) viper.SetDefault("ugc.prepare_max_file_size", 20*1024*1024) + viper.SetDefault("usage_report.enabled", true) viper.SetDefault("usage_report.flush_interval", 5*time.Minute) } From 0afd76a4bd7eee8f664850132ca976d1c918100f Mon Sep 17 00:00:00 2001 From: Itai Admi Date: Wed, 6 Nov 2024 13:32:23 +0200 Subject: [PATCH 2/2] LAKEFS_USAGE_REPORT_ENABLED=false --- esti/ops/docker-compose-dynamodb.yaml | 1 + esti/ops/docker-compose-external-db.yaml | 1 + esti/ops/docker-compose.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/esti/ops/docker-compose-dynamodb.yaml b/esti/ops/docker-compose-dynamodb.yaml index f5e8199c9f5..7805c6a9bd9 100644 --- a/esti/ops/docker-compose-dynamodb.yaml +++ b/esti/ops/docker-compose-dynamodb.yaml @@ -28,6 +28,7 @@ services: - LAKEFS_DATABASE_DYNAMODB_AWS_REGION=us-east-1 - LAKEFS_DATABASE_DYNAMODB_AWS_ACCESS_KEY_ID=AKIAIO5FODNN7EXAMPLE - LAKEFS_DATABASE_DYNAMODB_AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K3MDENG/bPxRfiCYEXAMPLEKEY + - LAKEFS_USAGE_REPORT_ENABLED=false entrypoint: ["/app/lakefs", "run"] extra_hosts: - "host.docker.internal:host-gateway" diff --git a/esti/ops/docker-compose-external-db.yaml b/esti/ops/docker-compose-external-db.yaml index a63cd65f2bc..1ea73a657b7 100644 --- a/esti/ops/docker-compose-external-db.yaml +++ b/esti/ops/docker-compose-external-db.yaml @@ -28,6 +28,7 @@ services: - AZURE_CLIENT_ID - AZURE_CLIENT_SECRET - AZURE_TENANT_ID + - LAKEFS_USAGE_REPORT_ENABLED=false entrypoint: ["/app/lakefs", "run"] extra_hosts: - "host.docker.internal:host-gateway" diff --git a/esti/ops/docker-compose.yaml b/esti/ops/docker-compose.yaml index 71bada4ee12..cb640ec8004 100644 --- a/esti/ops/docker-compose.yaml +++ b/esti/ops/docker-compose.yaml @@ -24,6 +24,7 @@ services: - LAKEFS_LOGGING_LEVEL=DEBUG - LAKEFS_BLOCKSTORE_GS_CREDENTIALS_JSON - LAKEFS_STATS_ENABLED + - LAKEFS_USAGE_REPORT_ENABLED=false - AZURE_CLIENT_ID - AZURE_CLIENT_SECRET - AZURE_TENANT_ID