code: public void release()
      {
          for(String name : allMetrics) 
          {
              Metrics.defaultRegistry().removeMetric(factory.createMetricName(name));
          }
          // latency metrics contain multiple metrics internally and need to be released manually
          readLatency.release();
          writeLatency.release();
          rangeLatency.release();
      }
docs: Release all associated metrics.