Adding block profiling to metrics (#4741)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e068c1d58e
Коммит
9670afed82
@@ -231,6 +231,7 @@
|
||||
},
|
||||
"MetricsSettings": {
|
||||
"Enable": false,
|
||||
"BlockProfileRate": 0,
|
||||
"ListenAddress": ":8067"
|
||||
},
|
||||
"WebrtcSettings": {
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user