overview node count

This commit is contained in:
liugq 2022-03-02 10:13:03 +08:00
parent 351e94c256
commit a42372bba5
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ func (handler APIHandler) ElasticsearchOverviewAction(w http.ResponseWriter, req
if err != nil{
log.Error(err)
}
nodeCount, err := handler.getMetricCount(orm.GetIndexName(elastic.NodeConfig{}), "metadata.node_id")
nodeCount, err := handler.getMetricCount(orm.GetIndexName(elastic.NodeConfig{}), "_id")
if err != nil{
log.Error(err)
}