@Override
    public void metricRemoval(KafkaMetric metric) {
        synchronized (lock) {
            log.debug("Removing metric {}", metric.metricName());
            metrics.remove(metric.metricName());
        }
    }
MetricsReporter that aggregates metrics data and reports it via HTTP requests to a configurable
webhook endpoint in JSON format.

This is an internal class used for system tests and does not provide any compatibility guarantees.
tools/src/main/java/org/apache/kafka/tools/PushHttpMetricsReporter.java