Repository: ambari Updated Branches: refs/heads/trunk 2700b4470 -> bffde0a59
AMBARI-16695. HDFS Alerts: add minimum values to AMS alerts. Fixed metric names. (swagle) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/bffde0a5 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/bffde0a5 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/bffde0a5 Branch: refs/heads/trunk Commit: bffde0a59c3d8f203878c35a93372a29cb50bf23 Parents: 2700b44 Author: Siddharth Wagle <swa...@hortonworks.com> Authored: Tue May 17 19:14:45 2016 -0700 Committer: Siddharth Wagle <swa...@hortonworks.com> Committed: Tue May 17 19:14:45 2016 -0700 ---------------------------------------------------------------------- .../HDFS/2.1.0.2.0/package/alerts/alert_metrics_deviation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/bffde0a5/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_metrics_deviation.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_metrics_deviation.py b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_metrics_deviation.py index 0dbbfb9..c2d17c0 100644 --- a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_metrics_deviation.py +++ b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_metrics_deviation.py @@ -329,9 +329,9 @@ def execute(configurations={}, parameters={}, host_name=None): number_of_data_points)]) minimum_value_multiplier = 1 - if 'storage_capacity_usage' in metric_name: + if 'jvm.JvmMetrics.MemHeapUsedM' in metric_name or 'dfs.FSNamesystem.CapacityUsed' in metric_name: minimum_value_multiplier = 1024 * 1024 # MB to bytes - elif 'service_rpc' in metric_name or 'client_rpc' in metric_name: + elif 'rpc.rpc.datanode' in metric_name or 'rpc.rpc.client' in metric_name: minimum_value_multiplier = 1000 # seconds to millis if minimum_value_threshold: