summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/model/config.go b/model/config.go
index f9a1d4861..6288a036b 100644
--- a/model/config.go
+++ b/model/config.go
@@ -99,8 +99,9 @@ type ClusterSettings struct {
}
type MetricsSettings struct {
- Enable *bool
- ListenAddress *string
+ Enable *bool
+ BlockProfileRate *int
+ ListenAddress *string
}
type SSOSettings struct {
@@ -974,6 +975,11 @@ func (o *Config) SetDefaults() {
*o.ServiceSettings.Forward80To443 = false
}
+ if o.MetricsSettings.BlockProfileRate == nil {
+ o.MetricsSettings.BlockProfileRate = new(int)
+ *o.MetricsSettings.BlockProfileRate = 0
+ }
+
o.defaultWebrtcSettings()
}