public static MetricName buildTopicPartitionMetricName(String name, String topic, String partition) {
        Map<String, String> tags = Map.of("topic", topic, "partition", partition);
        String group = null;
        String type = null;
        if (BYTES_IN_PER_SEC.equals(name) || BYTES_OUT_PER_SEC.equals(name)) {
            group = KAFKA_SERVER;
            type = BROKER_TOPIC_PARTITION_METRICS_GROUP;
        }
        if (group == null) {
            return null;
        }
        return KafkaMetricsGroup.explicitMetricName(group, type, name, tags);
    }
Get empty metric for specified metric name

@param name metric name
@return empty metric implementation
core/src/main/java/kafka/autobalancer/metricsreporter/metric/MetricsUtils.java