config: remove prometheus secondary-endpoint flag
Signed-off-by: huanggze <loganhuang@yunify.com>
This commit is contained in:
@@ -186,8 +186,7 @@ func (conf *Config) stripEmptyOptions() {
|
||||
conf.DevopsOptions = nil
|
||||
}
|
||||
|
||||
if conf.MonitoringOptions != nil && conf.MonitoringOptions.Endpoint == "" &&
|
||||
conf.MonitoringOptions.SecondaryEndpoint == "" {
|
||||
if conf.MonitoringOptions != nil && conf.MonitoringOptions.Endpoint == "" {
|
||||
conf.MonitoringOptions = nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user