@Override
  public void init() {
    super.init();
    request = getMetricsRegistry().getCounter(REQUEST_KEY, 0L);

    sucGet = getMetricsRegistry().getCounter(SUCCESSFUL_GET_KEY, 0L);
    sucPut = getMetricsRegistry().getCounter(SUCCESSFUL_PUT_KEY, 0L);
    sucDel = getMetricsRegistry().getCounter(SUCCESSFUL_DELETE_KEY, 0L);
    sucScan = getMetricsRegistry().getCounter(SUCCESSFUL_SCAN_KEY, 0L);
    sucAppend = getMetricsRegistry().getCounter(SUCCESSFUL_APPEND_KEY, 0L);
    sucIncrement = getMetricsRegistry().getCounter(SUCCESSFUL_INCREMENT_KEY, 0L);

    fGet = getMetricsRegistry().getCounter(FAILED_GET_KEY, 0L);
    fPut = getMetricsRegistry().getCounter(FAILED_PUT_KEY, 0L);
    fDel = getMetricsRegistry().getCounter(FAILED_DELETE_KEY, 0L);
    fScan = getMetricsRegistry().getCounter(FAILED_SCAN_KEY, 0L);
    fAppend = getMetricsRegistry().getCounter(FAILED_APPEND_KEY, 0L);
    fIncrement = getMetricsRegistry().getCounter(FAILED_INCREMENT_KEY, 0L);
  }
Hadoop Two implementation of a metrics2 source that will export metrics from the Rest server to
the hadoop metrics2 subsystem. Implements BaseSource through BaseSourceImpl, following the
pattern
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/rest/MetricsRESTSourceImpl.java