07 Jun 2021 11:31 AM - last edited on 03 Mar 2022 03:08 PM by MaciejNeumann
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
Solved! Go to Solution.
07 Jun 2021 08:57 PM
Hi Sivesh,
Check the entity parameter to specify the host/hosts, full list of host parameters can be found here https://www.dynatrace.com/support/help/shortlink/api-hosts-get-all#parameters
07 Jun 2021 10:55 PM
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)
20 Aug 2021 02:35 PM
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.