HBASE-20233 Remove redundant region server metric
Remove unused import
This commit is contained in:
parent
f5d970eba1
commit
f154afa7cd
|
@ -48,7 +48,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";
|
||||
|
||||
/**
|
||||
|
|
|
@ -27,7 +27,6 @@ import org.apache.yetus.audience.InterfaceAudience;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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;
|
||||
|
@ -105,7 +104,6 @@ public class MetricsRegionAggregateSourceImpl extends BaseSourceImpl
|
|||
((MetricsRegionSourceImpl) regionMetricSource).snapshot(mrb, all);
|
||||
}
|
||||
}
|
||||
mrb.addGauge(Interns.info(NUM_REGIONS, NUMBER_OF_REGIONS_DESC), regionSources.size());
|
||||
metricsRegistry.snapshot(mrb, all);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue