You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "bbeaudreault (via GitHub)" <gi...@apache.org> on 2023/03/09 19:14:00 UTC

[GitHub] [hbase] bbeaudreault commented on a diff in pull request #5067: HBASE-27532 Add block bytes scanned metrics

bbeaudreault commented on code in PR #5067:
URL: https://github.com/apache/hbase/pull/5067#discussion_r1131485819


##########
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsUserSourceImpl.java:
##########
@@ -116,7 +119,7 @@ public MetricsUserSourceImpl(String user, MetricsUserAggregateSourceImpl agg) {
     this.user = user;
     this.registry = agg.getMetricsRegistry();
 
-    this.userNamePrefix = "user_" + user + "_metric_";
+    this.userNamePrefix = "User_" + user + "_metric_";

Review Comment:
   this change is ok because all of the existing `newTimeHistogram` calls already capitalize the first letter. So these end up in JMX like `User_foo_metric_...`.  But `newCounter` doesn't do the same capitalization, so the new blockBytesScannedCount ends up `user_foo_metric_blockBytesScannedCount` (lowercase u). So this change here just ensures that all the metrics are similarly capitalized.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hbase.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org