question

Nirmaljeet S. avatar image
Nirmaljeet S. asked ·

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

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

rest apirest
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Nirmaljeet S. avatar image
Nirmaljeet S. answered ·

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

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

AppMon does not have timeseries api. Only Dynatrace have

0 Likes 0 · ·
Ramesh N. avatar image
Ramesh N. answered ·

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

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Sebastian K. avatar image
Sebastian K. answered ·

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/dashboards-and-reporting-rest/

Sebastian

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.