Repository: ambari
Updated Branches:
  refs/heads/trunk d2a926ee7 -> 951163860


AMBARI-18571 'HDFS Space Utilization' metric graph in HDFS service page is 
incorrect. (atkach)


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

Branch: refs/heads/trunk
Commit: 9511638609f756cc70eaf0cca32a1cc55b40424c
Parents: d2a926e
Author: Andrii Tkach <atk...@apache.org>
Authored: Tue Oct 11 20:25:07 2016 +0300
Committer: Andrii Tkach <atk...@apache.org>
Committed: Wed Oct 12 12:10:55 2016 +0300

----------------------------------------------------------------------
 .../resources/stacks/HDP/2.3/services/HDFS/widgets.json | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/95116386/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/widgets.json
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/widgets.json 
b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/widgets.json
index eeb9ff8..4a645b0 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/widgets.json
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/widgets.json
@@ -378,8 +378,8 @@
           "is_visible": true,
           "metrics": [
             {
-              "name": 
"FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.DfsUsed",
-              "metric_path": "metrics/dfs/datanode/DfsUsed",
+              "name": 
"FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.Remaining",
+              "metric_path": 
"metrics/FSDatasetState/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl/Remaining",
               "service_name": "HDFS",
               "component_name": "DATANODE"
             },
@@ -393,7 +393,7 @@
           "values": [
             {
               "name": "HDFS Space Utilization",
-              "value": 
"${FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.DfsUsed/FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.Capacity}"
+              "value": 
"${(FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.Capacity
 - 
FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.Remaining)/FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.Capacity}"
             }
           ],
           "properties": {
@@ -620,8 +620,8 @@
           "is_visible": false,
           "metrics": [
             {
-              "name": 
"FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.DfsUsed",
-              "metric_path": "metrics/dfs/datanode/DfsUsed",
+              "name": 
"FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.Remaining",
+              "metric_path": 
"metrics/FSDatasetState/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl/Remaining",
               "service_name": "HDFS",
               "component_name": "DATANODE"
             },
@@ -635,7 +635,7 @@
           "values": [
             {
               "name": "HDFS Space Utilization",
-              "value": 
"${(FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.DfsUsed/FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.Capacity)
 * 100}"
+              "value": 
"${((FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.Capacity
 - 
FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.Remaining)/FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.Capacity)
 * 100}"
             }
           ],
           "properties": {

Reply via email to