public static Builder forRegistry(final MetricRegistry registry) {
        return new Builder(registry);
    }
Returns a new {@link Builder} for {@link MetricReporter}.

@param registry the registry to report
@return a {@link Builder} instance for a {@link MetricReporter}
jraft-core/src/main/java/com/alipay/sofa/jraft/util/MetricReporter.java