@Override
        public boolean equals(Object obj) {
            if (obj == this)
                return true;
            if (obj instanceof MetricGroupId) {
                MetricGroupId that = (MetricGroupId) obj;
                return this.groupName.equals(that.groupName) && this.tags.equals(that.tags);
            }
            return false;
        }
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