count host from .infini_host priority
This commit is contained in:
parent
31f91c0c89
commit
1bce8cc200
|
@ -85,7 +85,6 @@ func (handler APIHandler) ElasticsearchOverviewAction(w http.ResponseWriter, req
|
||||||
if err != nil{
|
if err != nil{
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
}
|
}
|
||||||
log.Info(hostCount)
|
|
||||||
if v, ok := hostCount.(float64); ok && v == 0 {
|
if v, ok := hostCount.(float64); ok && v == 0 {
|
||||||
log.Error("sss")
|
log.Error("sss")
|
||||||
hostCount, err = handler.getMetricCount(orm.GetIndexName(elastic.NodeConfig{}), "metadata.host", clusterIDs)
|
hostCount, err = handler.getMetricCount(orm.GetIndexName(elastic.NodeConfig{}), "metadata.host", clusterIDs)
|
||||||
|
|
Loading…
Reference in New Issue