public MetricName metricInstance(MetricNameTemplate template, String... keyValue) {
        return metricInstance(template, MetricsUtils.getTags(keyValue));
    }
This iterates over every Sensor and triggers a removeSensor if it has expired
Package private for testing
clients/src/main/java/org/apache/kafka/common/metrics/Metrics.java