Skip to content

Commit

Permalink
Usage report saved by default (#8343)
Browse files Browse the repository at this point in the history
* Usage report saved by default

* LAKEFS_USAGE_REPORT_ENABLED=false
  • Loading branch information
itaiad200 authored Nov 6, 2024
1 parent 4e9020f commit eca3a9a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions esti/ops/docker-compose-dynamodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions esti/ops/docker-compose-external-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions esti/ops/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pkg/config/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit eca3a9a

Please sign in to comment.