summaryrefslogtreecommitdiff
path: root/ambari-metrics/ambari-metrics-host-monitoring
diff options
context:
space:
mode:
authorSiddharth Wagle <swagle@hortonworks.com>2015-05-01 14:27:54 -0700
committerSiddharth Wagle <swagle@hortonworks.com>2015-05-01 14:27:54 -0700
commit7fc85761a203f3279e87209f62348a8a0505f551 (patch)
treeaee2b72ddc3136ee38a2e1d6e450d8bda5e37c55 /ambari-metrics/ambari-metrics-host-monitoring
parent89711d74312553a8f6f16f745d7542b40081c5d1 (diff)
AMBARI-10890. Report cpu_steal percent with cpu metrics. (swagle)
Diffstat (limited to 'ambari-metrics/ambari-metrics-host-monitoring')
-rw-r--r--ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/host_info.py1
1 files changed, 1 insertions, 0 deletions
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 057b5b6388..e102c11845 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()