Skip to content

Commit

Permalink
Usage report saved by default
Browse files Browse the repository at this point in the history
  • Loading branch information
itaiad200 committed Nov 4, 2024
1 parent c918ad8 commit 455698f
Show file tree
Hide file tree
Showing 2 changed files with 2 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 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 455698f

Please sign in to comment.