private static boolean isInterested(String group, String name, String type, Map<String, String> tags) {
        if (group.equals(KAFKA_SERVER)) {
            if (BROKER_TOPIC_PARTITION_METRICS_GROUP.equals(type)) {
                return INTERESTED_TOPIC_PARTITION_METRIC_NAMES.contains(name) && sanityCheckTopicPartitionTags(tags);
            }
        } else if (group.startsWith(KAFKA_LOG_PREFIX) && INTERESTED_LOG_METRIC_NAMES.contains(name)) {
            return LOG_GROUP.equals(type);
        }
        return false;
    }
Check if a metric is an interested metric.

@param group Group of the metric.
@param name  Name of the metric.
@param type  Type of the metric.
@param tags  Tags of the metric.
@return {@code true} for a metric of interest, {@code false} otherwise.
core/src/main/java/kafka/autobalancer/metricsreporter/metric/MetricsUtils.java