public boolean isEnabled() {
        return this.metrics != null;
    }
Whether metric is enabled.

@return true if metric is enabled
jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeMetrics.java