MM-58092 Add feature flag and setting for client performance metrics (#26942)
* MM-58092 Add feature flag and setting for client performance metrics * Fix incorrect field name
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
03c930daa0
Коммит
0a3a55bb80
@@ -980,9 +980,10 @@ func (s *ClusterSettings) SetDefaults() {
|
||||
}
|
||||
|
||||
type MetricsSettings struct {
|
||||
Enable *bool `access:"environment_performance_monitoring,write_restrictable,cloud_restrictable"`
|
||||
BlockProfileRate *int `access:"environment_performance_monitoring,write_restrictable,cloud_restrictable"`
|
||||
ListenAddress *string `access:"environment_performance_monitoring,write_restrictable,cloud_restrictable"` // telemetry: none
|
||||
Enable *bool `access:"environment_performance_monitoring,write_restrictable,cloud_restrictable"`
|
||||
BlockProfileRate *int `access:"environment_performance_monitoring,write_restrictable,cloud_restrictable"`
|
||||
ListenAddress *string `access:"environment_performance_monitoring,write_restrictable,cloud_restrictable"` // telemetry: none
|
||||
EnableClientMetrics *bool `access:"environment_performance_monitoring,write_restrictable,cloud_restrictable"`
|
||||
}
|
||||
|
||||
func (s *MetricsSettings) SetDefaults() {
|
||||
@@ -997,6 +998,10 @@ func (s *MetricsSettings) SetDefaults() {
|
||||
if s.BlockProfileRate == nil {
|
||||
s.BlockProfileRate = NewInt(0)
|
||||
}
|
||||
|
||||
if s.EnableClientMetrics == nil {
|
||||
s.EnableClientMetrics = NewBool(true)
|
||||
}
|
||||
}
|
||||
|
||||
type ExperimentalSettings struct {
|
||||
|
||||
Ссылка в новой задаче
Block a user