public Metrics metrics() {
        return metrics;
    }
Get the {@link Metrics Kafka Metrics} that are managed by this object and that should be used to
add sensors and individual metrics.

@return the Kafka Metrics instance; never null
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/ConnectMetrics.java