public boolean includes(MetricName metricName) {
            return metricName != null && groupName.equals(metricName.group()) && tags.equals(metricName.tags());
        }
Determine if the supplied metric name is part of this group identifier.

@param metricName the metric name
@return true if the metric name's group and tags match this group identifier, or false otherwise
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/ConnectMetrics.java