Skip to content

Commit

Permalink
HBASE-27713 Remove numRegions in Region Metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
thangTang committed Mar 15, 2023
1 parent c2b64e7 commit 5b5cce5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ public interface MetricsRegionAggregateSource extends BaseSource {
*/
String METRICS_JMX_CONTEXT = "RegionServer,sub=" + METRICS_NAME;

String NUM_REGIONS = "numRegions";
String NUMBER_OF_REGIONS_DESC = "Number of regions in the metrics system";

/**
* Register a MetricsRegionSource as being open.
* @param source the source for the region being opened.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ public void getMetrics(MetricsCollector collector, boolean all) {
((MetricsRegionSourceImpl) regionMetricSource).snapshot(mrb, all);
}
}
mrb.addGauge(Interns.info(NUM_REGIONS, NUMBER_OF_REGIONS_DESC), regionSources.size());
metricsRegistry.snapshot(mrb, all);
}
}
Expand Down

0 comments on commit 5b5cce5

Please sign in to comment.