Repository: ambari
Updated Branches:
  refs/heads/trunk 89711d743 -> 7fc85761a


AMBARI-10890. Report cpu_steal percent with cpu metrics. (swagle)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7fc85761
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7fc85761
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7fc85761

Branch: refs/heads/trunk
Commit: 7fc85761a203f3279e87209f62348a8a0505f551
Parents: 89711d7
Author: Siddharth Wagle <swa...@hortonworks.com>
Authored: Fri May 1 14:27:54 2015 -0700
Committer: Siddharth Wagle <swa...@hortonworks.com>
Committed: Fri May 1 14:27:54 2015 -0700

----------------------------------------------------------------------
 .../src/main/python/core/host_info.py                               | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/7fc85761/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/host_info.py
----------------------------------------------------------------------
diff --git 
a/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/host_info.py
 
b/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/host_info.py
index 057b5b6..e102c11 100644
--- 
a/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/host_info.py
+++ 
b/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/host_info.py
@@ -65,6 +65,7 @@ class HostInfo():
       'cpu_wio': number2percents(cpu_times.iowait) if hasattr(cpu_times, 
'iowait') else 0,
       'cpu_intr': number2percents(cpu_times.irq) if hasattr(cpu_times, 'irq') 
else 0,
       'cpu_sintr': number2percents(cpu_times.softirq) if hasattr(cpu_times, 
'softirq') else 0
+      'cpu_steal': number2percents(cpu_times.steal) if hasattr(cpu_times, 
'steal') else 0
     }
     if platform.system() != "Windows":
       load_avg = os.getloadavg()

Reply via email to