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

Get process cpu utilization using api

vikas_sood
Newcomer

Hi,

 

Is there any api to get the highlighted details in below snapshot for a process group?

CDViewer_FyKf9zcQXA.png

 

I tried the metrics v2 api's in https://community.dynatrace.com/t5/REST-API/API-Get-detailed-CPU-consumption/m-p/102104 , however they are for Metrics only. How can I get the highlighted details:

 - Name

- Type

- CPU usage at mark

3 REPLIES 3

Yosi_Neuman
DynaMight Champion
DynaMight Champion

Hi @vikas_sood,

Try Metrics API - GET metric data points with builtin:tech.generic.cpu.groupTotalTime

Yosi_Neuman_0-1643183078140.png

HTH

Yos 

dynatrace certificated professional - dynatrace primer partner - Matrix Soft Ware Division - Israel

builtin:tech.generic.cpu.groupTotalTime isn't returning any data. I am seeing data only with cpu.usage and cpu.totalTIme.

 

image.png

Ok, so I am able to pull builtin:tech.generic.cpu.groupTotalTime  from dynatrace for a process group. However, I also need to pull the cpu consumption by all processes in process group along with the process name. Is there any API for that?