Grouping hosts in infrastructure by custom key or tags

Is there any way to group host with name while monitoring infrastructure with elastic-agent? Currently agent name is same as hostname under fleet and if we keep hostname same for more than 1 host to group them under same name then only one host is visible under observability infrastructure.

What we want to do is to see infrastructure metrics group by cluster/service. If we can see CPU of all FE servers or all BE servers by selection of custom key or tag or name. Not sure how we can do that?

Elastic agent does allow to tag hosts in fleet but those tags cannot be used for grouping.


Were you ever able to find a way to achieve this?