@Override
    public Map<String, Metric> getMetrics() {
        final Map<String, Metric> gauges = new HashMap<>();
        gauges.put("buffer-size", (Gauge<Integer>) this.ringBuffer::getBufferSize);
        gauges.put("remaining-capacity", (Gauge<Long>) this.ringBuffer::remainingCapacity);
        return gauges;
    }
Return disruptor metrics
@return disruptor metrics map
jraft-core/src/main/java/com/alipay/sofa/jraft/util/DisruptorMetricSet.java