Hi,
Kindly let me know how to use entity selector to filter only by host name, currently below API is working but need to add entity selector with host name,
https://{}.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:tech.websphere.connectionPool.connectionPoolModule.PercentUsed:Avg:parents:names&api-token=xxx&resolution=INF&from=2021-04-20T11:00-05:00&to=2021-04-20T12:00-05:00
Regards,
Sivesh Kumar R
Hi Sivesh,
Check the entity parameter to specify the host/hosts, full list of host parameters can be found here Hosts API - GET all hosts — Dynatrace Docs
I’d recommend implementing a robust tagging strategy then filtering by tag, it’s much more flexible than filtering by the static host ID. Your future self will thank you 
type("HOST"),tag(app:myapplication)
How to Tag Host and all related services and processes using entity selector.
like in autotagging we will check apply to underlying hosts/process groups.