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
|
||||
}
|
||||
|
||||
|
||||
@@ -103,8 +103,7 @@ func newTestConfig() (*Config, error) {
|
||||
WeaveScopeHost: "weave-scope-app.weave.svc",
|
||||
},
|
||||
MonitoringOptions: &prometheus.Options{
|
||||
Endpoint: "http://prometheus.kubesphere-monitoring-system.svc",
|
||||
SecondaryEndpoint: "http://prometheus.kubesphere-monitoring-system.svc",
|
||||
Endpoint: "http://prometheus.kubesphere-monitoring-system.svc",
|
||||
},
|
||||
LoggingOptions: &elasticsearch.Options{
|
||||
Host: "http://elasticsearch-logging.kubesphere-logging-system.svc:9200",
|
||||
|
||||
Reference in New Issue
Block a user