@Override
    public String key() {
        return MetricsUtils.topicPartitionKey(topic, partition);
    }
This class was modified based on Cruise Control: com.linkedin.kafka.cruisecontrol.metricsreporter.metric.PartitionMetric.
core/src/main/java/kafka/autobalancer/metricsreporter/metric/TopicPartitionMetrics.java