Author: jaimin
Date: Thu Mar 14 00:51:00 2013
New Revision: 1456298
URL: http://svn.apache.org/r1456298
Log:
AMBARI-1620. Add heatmaps for Host and Hbase section. (jaimin)
Added:
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_cpuWaitIO.js
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase.js
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_compactionqueue.js
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_memstoresize.js
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_readrequest.js
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_regions.js
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_writerequest.js
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/ambari-web/app/controllers.js
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap.js
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric.js
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_diskspaceused.js
incubator/ambari/trunk/ambari-web/app/messages.js
Modified: incubator/ambari/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1456298&r1=1456297&r2=1456298&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Thu Mar 14 00:51:00 2013
@@ -11,6 +11,8 @@ Trunk (unreleased changes):
INCOMPATIBLE CHANGES
NEW FEATURES
+
+ AMBARI-1620. Add heatmaps for Host and Hbase section. (jaimin)
AMBARI-1634. Integrate Frontend Security work to enable security on
Oozie, Hive, and WebHCat Server. (jaimin)
Modified: incubator/ambari/trunk/ambari-web/app/controllers.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers.js?rev=1456298&r1=1456297&r2=1456298&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/controllers.js (original)
+++ incubator/ambari/trunk/ambari-web/app/controllers.js Thu Mar 14 00:51:00
2013
@@ -54,6 +54,7 @@ require('controllers/main/charts');
require('controllers/main/charts/heatmap_metrics/heatmap_metric');
require('controllers/main/charts/heatmap_metrics/heatmap_metric_processrun');
require('controllers/main/charts/heatmap_metrics/heatmap_metric_diskspaceused');
+require('controllers/main/charts/heatmap_metrics/heatmap_metric_cpuWaitIO');
require('controllers/main/charts/heatmap_metrics/heatmap_metric_memoryused');
require('controllers/main/charts/heatmap_metrics/heatmap_metric_dfs');
require('controllers/main/charts/heatmap_metrics/heatmap_metric_dfs_bytesread');
@@ -65,6 +66,12 @@ require('controllers/main/charts/heatmap
require('controllers/main/charts/heatmap_metrics/heatmap_metric_mapreduce_mapsRunning');
require('controllers/main/charts/heatmap_metrics/heatmap_metric_mapreduce_reducesRunning');
require('controllers/main/charts/heatmap_metrics/heatmap_metric_mapreduce_memHeapUsed');
+require('controllers/main/charts/heatmap_metrics/heatmap_metric_hbase');
+require('controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_readrequest');
+require('controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_writerequest');
+require('controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_compactionqueue');
+require('controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_regions');
+require('controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_memstoresize');
require('controllers/main/charts/heatmap');
require('controllers/main/apps_controller');
require('controllers/main/apps/item_controller');
Modified:
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap.js?rev=1456298&r1=1456297&r2=1456298&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap.js
(original)
+++ incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap.js
Thu Mar 14 00:51:00 2013
@@ -5,9 +5,9 @@
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -19,41 +19,63 @@ var App = require('app');
App.MainChartsHeatmapController = Em.Controller.extend({
name: 'mainChartsHeatmapController',
- cluster: function() {
+ cluster: function () {
return App.Cluster.find().objectAt(0);
}.property(''),
- allMetrics: function(){
+ allMetrics: function () {
var metrics = [
Em.Object.create({
label: Em.I18n.t('charts.heatmap.category.host'),
category: 'host',
- items: [ App.MainChartHeatmapDiskSpaceUsedMetric.create(),
- App.MainChartHeatmapMemoryUsedMetric.create()
- /*, App.MainChartHeatmapProcessRunMetric.create()*/ ]
+ items: [
+ App.MainChartHeatmapDiskSpaceUsedMetric.create(),
+ App.MainChartHeatmapMemoryUsedMetric.create(),
+ App.MainChartHeatmapCpuWaitIOMetric.create()
+ /*, App.MainChartHeatmapProcessRunMetric.create()*/
+ ]
}),
Em.Object.create({
label: Em.I18n.t('charts.heatmap.category.hdfs'),
category: 'hdfs',
- items: [ App.MainChartHeatmapDFSBytesReadMetric.create(),
+ items: [
+ App.MainChartHeatmapDFSBytesReadMetric.create(),
App.MainChartHeatmapDFSBytesWrittenMetric.create(),
App.MainChartHeatmapDFSGCTimeMillisMetric.create(),
- App.MainChartHeatmapDFSMemHeapUsedMetric.create() ]
- }),
+ App.MainChartHeatmapDFSMemHeapUsedMetric.create()
+ ]
+ })
];
- if(App.MapReduceService.find().get('length')) {
+ if (App.MapReduceService.find().get('length')) {
metrics.push(
Em.Object.create({
label: Em.I18n.t('charts.heatmap.category.mapreduce'),
category: 'mapreduce',
- items: [ App.MainChartHeatmapMapreduceMapsRunningMetric.create(),
+ items: [
+ App.MainChartHeatmapMapreduceMapsRunningMetric.create(),
App.MainChartHeatmapMapreduceReducesRunningMetric.create(),
App.MainChartHeatmapMapreduceGCTimeMillisMetric.create(),
- App.MainChartHeatmapMapreduceMemHeapUsedMetric.create() ]
+ App.MainChartHeatmapMapreduceMemHeapUsedMetric.create()
+ ]
})
);
}
+ if (App.HBaseService.find().get('length')) {
+ metrics.push(
+ Em.Object.create({
+ label: Em.I18n.t('charts.heatmap.category.hbase'),
+ category: 'hbase',
+ items: [
+ App.MainChartHeatmapHbaseReadReqCount.create(),
+ App.MainChartHeatmapHbaseWriteReqCount.create(),
+ App.MainChartHeatmapHbaseCompactionQueueSize.create(),
+ App.MainChartHeatmapHbaseRegions.create(),
+ App.MainChartHeatmapHbaseMemStoreSize.create()
+ ]
+ })
+ );
+ }
return metrics;
}.property(),
@@ -62,7 +84,7 @@ App.MainChartsHeatmapController = Em.Con
* route on host detail page
* @param event
*/
- routeHostDetail: function(event){
+ routeHostDetail: function (event) {
App.router.transitionTo('main.hosts.hostDetails.summary', event.context)
},
showHeatMapMetric: function (event) {
@@ -85,7 +107,7 @@ App.MainChartsHeatmapController = Em.Con
/**
* return class name for to be used for containing each rack.
- *
+ *
* @this App.MainChartsHeatmapController
*/
rackClass: function () {
Modified:
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric.js?rev=1456298&r1=1456297&r2=1456298&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric.js
(original)
+++
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric.js
Thu Mar 14 00:51:00 2013
@@ -311,4 +311,4 @@ App.MainChartHeatmapMetric = Em.Object.e
}
return num;
}
-})
\ No newline at end of file
+});
\ No newline at end of file
Added:
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_cpuWaitIO.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_cpuWaitIO.js?rev=1456298&view=auto
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_cpuWaitIO.js
(added)
+++
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_cpuWaitIO.js
Thu Mar 14 00:51:00 2013
@@ -0,0 +1,39 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+
+var App = require('app');
+
+/**
+ *
+ */
+App.MainChartHeatmapCpuWaitIOMetric = App.MainChartHeatmapMetric.extend({
+ name: Em.I18n.t('charts.heatmap.metrics.cpuWaitIO'),
+ maximumValue: 100,
+ defaultMetric: 'metrics.cpu.cpu_wio',
+ units: '%',
+ slotDefinitionLabelSuffix: '%',
+ metricMapper: function (json) {
+ var map = this._super(json);
+ for ( var host in map) {
+ if (host in map) {
+ var val = map[host];
+ map[host] = (val * 100).toFixed(1);
+ }
+ }
+ return map;
+ }
+});
\ No newline at end of file
Modified:
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_diskspaceused.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_diskspaceused.js?rev=1456298&r1=1456297&r2=1456298&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_diskspaceused.js
(original)
+++
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_diskspaceused.js
Thu Mar 14 00:51:00 2013
@@ -51,4 +51,4 @@ App.MainChartHeatmapDiskSpaceUsedMetric
}
return hostToValueMap;
}
-})
\ No newline at end of file
+});
\ No newline at end of file
Added:
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase.js?rev=1456298&view=auto
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase.js
(added)
+++
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase.js
Thu Mar 14 00:51:00 2013
@@ -0,0 +1,63 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+
+var App = require('app');
+
+/**
+ * Base class for any HDFS metric.
+ */
+App.MainChartHeatmapHbaseMetrics = App.MainChartHeatmapMetric.extend({
+ metricUrlTemplate:
"/clusters/{clusterName}/services/HBASE/components/HBASE_REGIONSERVER?fields=host_components/{metricName}",
+
+ /**
+ * Custom mapper for DFS metrics
+ */
+ metricMapper: function (json) {
+ var hostToValueMap = {};
+ var metricName = this.get('defaultMetric');
+ if (json.host_components) {
+ var props = metricName.split('.');
+ transformValueFunction = this.get('transformValue');
+ json.host_components.forEach(function (hc) {
+ var value = hc;
+ props.forEach(function (prop) {
+ if (value != null && prop in value) {
+ value = value[prop];
+ } else {
+ value = null;
+ }
+ });
+ if (value != null) {
+ if (transformValueFunction) {
+ value = transformValueFunction(value);
+ }
+ var hostName = hc.HostRoles.host_name;
+ hostToValueMap[hostName] = value;
+ }
+ });
+ }
+ return hostToValueMap;
+ },
+
+ /**
+ * Utility function which allows extending classes to transform the value
+ * assigned to a host.
+ *
+ * @type Function
+ */
+ tranformValue: null
+});
\ No newline at end of file
Added:
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_compactionqueue.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_compactionqueue.js?rev=1456298&view=auto
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_compactionqueue.js
(added)
+++
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_compactionqueue.js
Thu Mar 14 00:51:00 2013
@@ -0,0 +1,29 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+
+var App = require('app');
+
+/**
+ *
+ */
+App.MainChartHeatmapHbaseCompactionQueueSize =
App.MainChartHeatmapHbaseMetrics.extend({
+ name:
Em.I18n.t('charts.heatmap.metrics.HbaseRegionServerCompactionQueueSize'),
+ maximumValue: 10,
+ defaultMetric: 'metrics.hbase.regionserver.compactionQueueSize',
+ units: ' ',
+ slotDefinitionLabelSuffix: ' '
+});
\ No newline at end of file
Added:
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_memstoresize.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_memstoresize.js?rev=1456298&view=auto
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_memstoresize.js
(added)
+++
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_memstoresize.js
Thu Mar 14 00:51:00 2013
@@ -0,0 +1,29 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+
+var App = require('app');
+
+/**
+ *
+ */
+App.MainChartHeatmapHbaseMemStoreSize =
App.MainChartHeatmapHbaseMetrics.extend({
+ name: Em.I18n.t('charts.heatmap.metrics.HbaseRegionServerMemStoreSize'),
+ maximumValue: 100,
+ defaultMetric: 'metrics.hbase.regionserver.memstoreSizeMB',
+ units: 'MB',
+ slotDefinitionLabelSuffix: 'MB'
+});
\ No newline at end of file
Added:
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_readrequest.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_readrequest.js?rev=1456298&view=auto
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_readrequest.js
(added)
+++
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_readrequest.js
Thu Mar 14 00:51:00 2013
@@ -0,0 +1,29 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+
+var App = require('app');
+
+/**
+ *
+ */
+App.MainChartHeatmapHbaseReadReqCount =
App.MainChartHeatmapHbaseMetrics.extend({
+ name: Em.I18n.t('charts.heatmap.metrics.HbaseRegionServerReadCount'),
+ maximumValue: 200,
+ defaultMetric: 'metrics.hbase.regionserver.readRequestsCount',
+ units: '',
+ slotDefinitionLabelSuffix: ' '
+});
\ No newline at end of file
Added:
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_regions.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_regions.js?rev=1456298&view=auto
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_regions.js
(added)
+++
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_regions.js
Thu Mar 14 00:51:00 2013
@@ -0,0 +1,29 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+
+var App = require('app');
+
+/**
+ *
+ */
+App.MainChartHeatmapHbaseRegions = App.MainChartHeatmapHbaseMetrics.extend({
+ name: Em.I18n.t('charts.heatmap.metrics.HbaseRegionServerRegions'),
+ maximumValue: 10,
+ defaultMetric: 'metrics.hbase.regionserver.regions',
+ units: 'regions',
+ slotDefinitionLabelSuffix: 'region'
+});
\ No newline at end of file
Added:
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_writerequest.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_writerequest.js?rev=1456298&view=auto
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_writerequest.js
(added)
+++
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_hbase_writerequest.js
Thu Mar 14 00:51:00 2013
@@ -0,0 +1,29 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+
+var App = require('app');
+
+/**
+ *
+ */
+App.MainChartHeatmapHbaseWriteReqCount =
App.MainChartHeatmapHbaseMetrics.extend({
+ name: Em.I18n.t('charts.heatmap.metrics.HbaseRegionServerWriteCount'),
+ maximumValue: 200,
+ defaultMetric: 'metrics.hbase.regionserver.writeRequestsCount',
+ units: 'counts',
+ slotDefinitionLabelSuffix: ' '
+});
\ No newline at end of file
Modified: incubator/ambari/trunk/ambari-web/app/messages.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/messages.js?rev=1456298&r1=1456297&r2=1456298&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/messages.js (original)
+++ incubator/ambari/trunk/ambari-web/app/messages.js Thu Mar 14 00:51:00 2013
@@ -792,6 +792,7 @@ Em.I18n.translations = {
'charts.heatmap.item.host.process':'Total Running Processes',
'charts.heatmap.category.hdfs':'HDFS',
'charts.heatmap.category.mapreduce': 'MapReduce',
+ 'charts.heatmap.category.hbase': 'HBase',
'charts.heatmap.unknown': 'Unknown',
'charts.heatmap.label.notApplicable' :'Not Applicable',
'charts.heatmap.label.invalidData' :'Invalid data',
@@ -806,7 +807,12 @@ Em.I18n.translations = {
'charts.heatmap.metrics.reducesRunning' :'Reduces Running',
'charts.heatmap.metrics.memoryUsed' :'Memory Used %',
'charts.heatmap.metrics.processRun' :'Total Running Processes',
-
+ 'charts.heatmap.metrics.cpuWaitIO':'CPU Wait I/O %',
+ 'charts.heatmap.metrics.HbaseRegionServerReadCount': 'RegionServer read
request count',
+ 'charts.heatmap.metrics.HbaseRegionServerWriteCount': 'RegionServer write
request count',
+ 'charts.heatmap.metrics.HbaseRegionServerCompactionQueueSize': 'RegionServer
compaction queue size',
+ 'charts.heatmap.metrics.HbaseRegionServerRegions': 'RegionServer regions',
+ 'charts.heatmap.metrics.HbaseRegionServerMemStoreSize': 'RegionServer
memstore sizes',
'metric.notFound':'no items found',
'metric.default':'combined',
'metric.cpu':'cpu',