diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/ozone.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/ozone.js index 0d7a286015..a4bb943eef 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/ozone.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/ozone.js @@ -112,8 +112,8 @@ var createPercentageMetrics = function (metricName, window) { groupedMetrics.percentiles = groupedMetrics['percentiles'] || {} - groupedMetrics.percentiles[metricName] = groupedMetrics.percentiles[metricName] || {}; - groupedMetrics.percentiles[metricName][window] = groupedMetrics.percentiles[metricName][window] || { + groupedMetrics.percentiles[window] = groupedMetrics.percentiles[window] || {}; + groupedMetrics.percentiles[window][metricName] = groupedMetrics.percentiles[window][metricName] || { graphdata: [{ key: window, values: [] @@ -134,7 +134,7 @@ createPercentageMetrics(metricName, window); - groupedMetrics.percentiles[metricName][window].graphdata[0] + groupedMetrics.percentiles[window][metricName].graphdata[0] .values.push({ label: percentage, value: metrics[key] @@ -169,7 +169,7 @@ var metricName = percentileNumOps[1]; var window = percentileNumOps[2]; createPercentageMetrics(metricName, window); - groupedMetrics.percentiles[metricName][window].numOps = metrics[key]; + groupedMetrics.percentiles[window][metricName].numOps = metrics[key]; } else if (isIgnoredJmxKeys(key)) { //ignore } else { diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/templates/rpc-metrics.html b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/templates/rpc-metrics.html index a31bdcf03b..81b76cf335 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/templates/rpc-metrics.html +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/templates/rpc-metrics.html @@ -20,14 +20,17 @@ (eg. set to 60,300) in your hdfs-site.xml to display Hadoop RPC related graphs. -
-

{{metric}}

+
+

{{window}} window

+

Quantiles based on a fixed {{window}} window. Calculated once at every + {{window}}

-
-

{{window}} window ({{windowed.numOps}} request)

+
+

{{metric}}

+

{{percentiles.numOps}} sample

+ data="percentiles.graphdata">