AnsweredAssumed Answered

Node Metrics | Converting CPU jiffies to percentage

Question asked by kkumar27 on Sep 29, 2016
Latest reply on Oct 25, 2016 by Ted Dunning

Hi,

I want to convert the node metrics data to percentage base for CPU utilization for a given time frame.

I am fetching the CPU's following information by firing the maprcli node metrics command for an interval of 1 hours apart.

 

But the problem is that the results for below listed properties are fetched in jiffies:

  1. CPUIDLE
  2. CPUIOWAIT
  3. CPUTOTAL
  4. CPUNICE
  5. CPUUSER
  6. CPUSYSTEM 

 

Data looks as below:

CPUIDLECPUIOWAITCPUTOTALCPUNICECPUSYSTEMCPUUSER
529025270186541554632484145910184791152989191654
529031059186564754633089045910184794488989200230
529037082186564754633692245910184798023989211892
529043088186564754634297645910184800752989221027

 

How can I convert the values to percentage?

 

Thanks

Kunal Kumar

Outcomes