Repository: ambari Updated Branches: refs/heads/trunk bffde0a59 -> 187ab949d
AMBARI-16695. HDFS Alerts: add minimum values to AMS alerts. Fixed metric name units. (swagle) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/187ab949 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/187ab949 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/187ab949 Branch: refs/heads/trunk Commit: 187ab949db1a982c407534f3969f177728e632d5 Parents: bffde0a Author: Siddharth Wagle <[email protected]> Authored: Tue May 17 19:16:51 2016 -0700 Committer: Siddharth Wagle <[email protected]> Committed: Tue May 17 19:16:51 2016 -0700 ---------------------------------------------------------------------- .../HDFS/2.1.0.2.0/package/alerts/alert_metrics_deviation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/187ab949/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 c2d17c0..9ff1273 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,7 +329,7 @@ def execute(configurations={}, parameters={}, host_name=None): number_of_data_points)]) minimum_value_multiplier = 1 - if 'jvm.JvmMetrics.MemHeapUsedM' in metric_name or 'dfs.FSNamesystem.CapacityUsed' in metric_name: + if 'dfs.FSNamesystem.CapacityUsed' in metric_name: minimum_value_multiplier = 1024 * 1024 # MB to bytes elif 'rpc.rpc.datanode' in metric_name or 'rpc.rpc.client' in metric_name: minimum_value_multiplier = 1000 # seconds to millis
