count host from .infini_host priority

This commit is contained in:
liugq 2022-09-09 21:43:55 +08:00
parent 31f91c0c89
commit 1bce8cc200
1 changed files with 0 additions and 1 deletions

View File

@ -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)