update overview api

This commit is contained in:
liugq 2022-02-25 14:49:19 +08:00
parent 949c781562
commit ae81af3da8
1 changed files with 2 additions and 2 deletions

View File

@ -51,11 +51,11 @@ func (handler APIHandler) ElasticsearchOverviewAction(w http.ResponseWriter, req
}
}
hostCount, err := handler.getMetricCount(orm.GetIndexName(elastic.HostMetadata{}), "metadata.host")
hostCount, err := handler.getMetricCount(orm.GetIndexName(elastic.NodeConfig{}), "metadata.labels.host")
if err != nil{
log.Error(err)
}
nodeCount, err := handler.getMetricCount(orm.GetIndexName(elastic.NodeMetadata{}), "node_id")
nodeCount, err := handler.getMetricCount(orm.GetIndexName(elastic.NodeConfig{}), "metadata.node_id")
if err != nil{
log.Error(err)
}