You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by av...@apache.org on 2018/11/14 19:14:49 UTC
[ambari] branch trunk updated: [AMBARI-23478] YARN Cluster CPU
Usage Graph Always Shows High CPU Usage (#2608)
This is an automated email from the ASF dual-hosted git repository.
avijayan pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 8fee8ce [AMBARI-23478] YARN Cluster CPU Usage Graph Always Shows High CPU Usage (#2608)
8fee8ce is described below
commit 8fee8ce8429229b587e2227f3fd73db474432459
Author: avijayanhwx <av...@hortonworks.com>
AuthorDate: Wed Nov 14 11:14:44 2018 -0800
[AMBARI-23478] YARN Cluster CPU Usage Graph Always Shows High CPU Usage (#2608)
---
.../server/controller/metrics/MetricsDataTransferMethodFactory.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/MetricsDataTransferMethodFactory.java b/ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/MetricsDataTransferMethodFactory.java
index b819c02..01fc452 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/MetricsDataTransferMethodFactory.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/MetricsDataTransferMethodFactory.java
@@ -40,7 +40,9 @@ public class MetricsDataTransferMethodFactory {
Set<String> metricsWithAggregateFunctionIds = new HashSet<>();
for (String metric : percentMetrics) {
for (String aggregateFunctionId : AGGREGATE_FUNCTION_IDENTIFIERS) {
- metricsWithAggregateFunctionIds.add(metric + aggregateFunctionId);
+ if (!"._sum".equals(aggregateFunctionId)) {
+ metricsWithAggregateFunctionIds.add(metric + aggregateFunctionId);
+ }
}
}