/** Release all associated metrics. */
 public void release() {
   for (String name : all) {
     allColumnFamilyMetrics
         .get(name)
         .remove(Metrics.defaultRegistry().allMetrics().get(factory.createMetricName(name)));
     Metrics.defaultRegistry().removeMetric(factory.createMetricName(name));
   }
   readLatency.release();
   writeLatency.release();
   rangeLatency.release();
   Metrics.defaultRegistry().removeMetric(factory.createMetricName("EstimatedRowSizeHistogram"));
   Metrics.defaultRegistry()
       .removeMetric(factory.createMetricName("EstimatedColumnCountHistogram"));
   Metrics.defaultRegistry().removeMetric(factory.createMetricName("KeyCacheHitRate"));
   Metrics.defaultRegistry().removeMetric(factory.createMetricName("CoordinatorReadLatency"));
   Metrics.defaultRegistry().removeMetric(factory.createMetricName("CoordinatorScanLatency"));
   Metrics.defaultRegistry().removeMetric(factory.createMetricName("WaitingOnFreeMemtableSpace"));
 }