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

 

3 REPLIES 3

Mo_Azuz
Dynatrace Mentor
Dynatrace Mentor

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.

Featured Posts