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

How can i get a cpu utilization of specific host/group of hosts using dynatrace REST API(timeseries)

nsingh
Newcomer

I need to get avg/max cpu utilization of a specific host/group of hosts.Can we do it by using dynatrace rest api?


6 REPLIES 6

Best option I think will be creating dashboard and using one of this endpoints:

https://www.dynatrace.com/support/doc/appmon/appmon-reference/rest-interfaces/server-rest-interfaces...

Sebastian


Ramesh_Nadar
Advisor

Nirmaljeet,

To elaborate Sebastian suggestion. Follow below steps.

Create new dashboard add CPU utilization measure --> split specific host name --> save dashboard --> choose appropriate chart type & save it.

access below URL for rest api

https://<DT server IP>:8021/rest/management/reports/create/<dashboard name>?type=xls

You can change file type as per your need.


Thanks

R


nsingh
Newcomer

@Ramesh N @sebastian k. I am asking by using dynatrace timeseries API.


AppMon does not have timeseries api. Only Dynatrace have


I got you,

jut try hitting  Whole Query.PNG
after saving token authentication in the header.

 

If you still face any issue with this, reach me out at "reach2abhinavtyagi@gmail.com", I'll be happy to help you out with this because it's very frustrating to look out for custom APIs.

 

 

Note: i am not able to share link here, that's why i inserted the image

I also published a blog on medium on this.
Please refer that if you feel.
https://abhinavtyagi08.medium.com/using-dynatrace-api-with-with-postman-7985902482cb