From a42372bba56d1f4cf63140fa7d60d85d4c640d33 Mon Sep 17 00:00:00 2001 From: liugq Date: Wed, 2 Mar 2022 10:13:03 +0800 Subject: [PATCH] overview node count --- plugin/api/index_management/elasticsearch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/api/index_management/elasticsearch.go b/plugin/api/index_management/elasticsearch.go index 5a7b01f1..a130edd6 100644 --- a/plugin/api/index_management/elasticsearch.go +++ b/plugin/api/index_management/elasticsearch.go @@ -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) }