Adding block profiling to metrics (#4741)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e068c1d58e
Коммит
9670afed82
@@ -231,6 +231,7 @@
|
|||||||
},
|
},
|
||||||
"MetricsSettings": {
|
"MetricsSettings": {
|
||||||
"Enable": false,
|
"Enable": false,
|
||||||
|
"BlockProfileRate": 0,
|
||||||
"ListenAddress": ":8067"
|
"ListenAddress": ":8067"
|
||||||
},
|
},
|
||||||
"WebrtcSettings": {
|
"WebrtcSettings": {
|
||||||
|
|||||||
@@ -99,8 +99,9 @@ type ClusterSettings struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type MetricsSettings struct {
|
type MetricsSettings struct {
|
||||||
Enable *bool
|
Enable *bool
|
||||||
ListenAddress *string
|
BlockProfileRate *int
|
||||||
|
ListenAddress *string
|
||||||
}
|
}
|
||||||
|
|
||||||
type SSOSettings struct {
|
type SSOSettings struct {
|
||||||
@@ -974,6 +975,11 @@ func (o *Config) SetDefaults() {
|
|||||||
*o.ServiceSettings.Forward80To443 = false
|
*o.ServiceSettings.Forward80To443 = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if o.MetricsSettings.BlockProfileRate == nil {
|
||||||
|
o.MetricsSettings.BlockProfileRate = new(int)
|
||||||
|
*o.MetricsSettings.BlockProfileRate = 0
|
||||||
|
}
|
||||||
|
|
||||||
o.defaultWebrtcSettings()
|
o.defaultWebrtcSettings()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user