cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use entity selector to filter only by host name?

abhishek_jawand
Newcomer

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.connectionP...

 

Regards,

Sivesh Kumar R

 

3 REPLIES 3

Moe_Azuz
Dynatrace Advisor
Dynatrace Advisor

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

Moe_0-1623095425408.png

 

 

adam_gardner
Dynatrace Champion
Dynatrace Champion

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)

dhanunjaya_kadi
Contributor

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.