change data structure of node metadata

This commit is contained in:
liugq 2022-03-14 11:50:25 +08:00
parent 24e1c81d51
commit 0feac6ba1b
1 changed files with 1 additions and 1 deletions

View File

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