public ConnectMetrics metrics() {
        return metrics;
    }
Get the {@link ConnectMetrics} that uses Kafka Metrics and manages the JMX reporter.
@return the Connect-specific metrics; never null
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java