Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBASE-27713 Remove numRegions in Region Metrics #5107

Merged
merged 1 commit into from
Apr 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -22,7 +22,6 @@
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import org.apache.hadoop.hbase.metrics.BaseSourceImpl;
import org.apache.hadoop.hbase.metrics.Interns;
import org.apache.hadoop.metrics2.MetricsCollector;
import org.apache.hadoop.metrics2.MetricsRecordBuilder;
import org.apache.hadoop.metrics2.impl.JmxCacheBuster;
Expand Down Expand Up @@ -99,7 +98,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());
Apache9 marked this conversation as resolved.
Show resolved Hide resolved
metricsRegistry.snapshot(mrb, all);
}
}
Expand Down