Skip to content

Commit c969b15

Browse files
committed
HBASE-22975 Add read and write QPS metrics at server level and table level
1 parent 04f6521 commit c969b15

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsTableQPS.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@ public interface MetricsTableQPS {
66
String TABLE_WRITE_QPS = "tableWriteQPS";
77

88
/**
9-
*
10-
* @param tableName
11-
* @param count
9+
* Update table read QPS
10+
* @param tableName The table the metric is for
11+
* @param count Number of occurrences to record
1212
*/
1313
void updateTableReadQPS(String tableName, long count);
1414

1515
/**
16-
*
17-
* @param tableName
16+
* Update table read QPS
17+
* @param tableName The table the metric is for
1818
*/
1919
void updateTableReadQPS(String tableName);
2020

2121
/**
22-
*
23-
* @param tableName
24-
* @param count
22+
* Update table write QPS
23+
* @param tableName The table the metric is for
24+
* @param count Number of occurrences to record
2525
*/
2626
void updateTableWriteQPS(String tableName, long count);
2727

2828
/**
29-
*
30-
* @param tableName
29+
* Update table write QPS
30+
* @param tableName The table the metric is for
3131
*/
3232
void updateTableWriteQPS(String tableName);
3333
}

hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsTableQPSImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package org.apache.hadoop.hbase.regionserver;
22

3+
import java.util.concurrent.ConcurrentHashMap;
4+
35
import com.google.common.annotations.VisibleForTesting;
46
import org.apache.hadoop.hbase.TableName;
57
import org.apache.hadoop.hbase.classification.InterfaceAudience;
68
import org.apache.hadoop.hbase.metrics.Meter;
79
import org.apache.hadoop.hbase.metrics.MetricRegistry;
810

9-
import java.util.concurrent.ConcurrentHashMap;
10-
1111
@InterfaceAudience.Private
1212
public class MetricsTableQPSImpl implements MetricsTableQPS {
1313

0 commit comments

Comments
 (0)