You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by origin <fu...@qq.com> on 2014/01/02 17:18:18 UTC

how to calculate requestPerSecond from metrics

Hey guys,
    I want to calculate requestPerSecond from HMaster metrics by clusterRequests,but I found the value was to large,and this was different from requestPerSecond from webpage.


the metrics string like this:
---------------------------------------------------------------------------------------------------------------
1388375742144 master.Server: Context=master, zookeeperQuorum=hadoop-dn-5:2181,hadoop-dn-4:2181,hadoop-dn-6:2181, serverName=hadoop-nn-1,60000,1387878342166, clusterId=eec6d632-7509-47ea-99e0-c90e59d3ec99, isActiveMaster=true, Context=master, Hostname=hadoop-nn-1, masterActiveTime=1387878343667, masterStartTime=1387878343156, averageLoad=6.666666666666667, numRegionServers=6, numDeadRegionServers=0, clusterRequests=63383816042302
1388375802144 master.Server: Context=master, zookeeperQuorum=hadoop-dn-5:2181,hadoop-dn-4:2181,hadoop-dn-6:2181, serverName=hadoop-nn-1,60000,1387878342166, clusterId=eec6d632-7509-47ea-99e0-c90e59d3ec99, isActiveMaster=true, Context=master, Hostname=hadoop-nn-1, masterActiveTime=1387878343667, masterStartTime=1387878343156, averageLoad=6.666666666666667, numRegionServers=6, numDeadRegionServers=0, clusterRequests=63397197990736



---------------------------------------------------------------------------------------------------------------
my hadoop-metrics2-hbase.properties:
-------------------------------------------------------------------------------------------
*.period=60
hbase.sink.file.class=org.hadoop.metrics2.sink.FileSink
hbase.fileName=/data1/hdfs/hbase/logs/metrics_hbase.log

-------------------------------------------------------------------------------------------
please tell me how to calculate requestPerSecond from clusterRequests correctly.
tks a lot.