@Override
    public MetricRegistry getMetricRegistryForRegionServer() {
      return metricRegistry;
    }
Coprocessor environment extension providing access to region server related services.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionServerCoprocessorHost.java