From 1bce8cc200b20d888e14fa09fa38efa6a1c1a283 Mon Sep 17 00:00:00 2001 From: liugq Date: Fri, 9 Sep 2022 21:43:55 +0800 Subject: [PATCH] count host from .infini_host priority --- plugin/api/index_management/elasticsearch.go | 1 - 1 file changed, 1 deletion(-) diff --git a/plugin/api/index_management/elasticsearch.go b/plugin/api/index_management/elasticsearch.go index ece5704e..42f93070 100644 --- a/plugin/api/index_management/elasticsearch.go +++ b/plugin/api/index_management/elasticsearch.go @@ -85,7 +85,6 @@ func (handler APIHandler) ElasticsearchOverviewAction(w http.ResponseWriter, req if err != nil{ log.Error(err) } - log.Info(hostCount) if v, ok := hostCount.(float64); ok && v == 0 { log.Error("sss") hostCount, err = handler.getMetricCount(orm.GetIndexName(elastic.NodeConfig{}), "metadata.host", clusterIDs)