private static ExternalSummary provideExternalSummary(
      final Statistics stats, final HistogramType histogramType) {

    final HistogramData data = stats.getHistogramData(histogramType);

    return new ExternalSummary(
        data.getCount(),
        data.getSum(),
        List.of(
            new Quantile(0.0, data.getMin()),
            new Quantile(0.5, data.getMedian()),
            new Quantile(0.95, data.getPercentile95()),
            new Quantile(0.99, data.getPercentile99()),
            new Quantile(1.0, data.getMax())));
  }
Register rocks db metrics.

@param stats the stats
@param metricsSystem the metrics system
@param category the category
metrics/rocksdb/src/main/java/org/hyperledger/besu/metrics/rocksdb/RocksDBStats.java