SensorBuilder withMeter(MetricNameTemplate rateName, MetricNameTemplate totalName) {
        if (!preexisting) {
            sensor.add(new Meter(metrics.metricInstance(rateName, tags), metrics.metricInstance(totalName, tags)));
        }

        return this;
    }
{@code SensorBuilder} takes a bit of the boilerplate out of creating {@link Sensor sensors} for recording
{@link Metric metrics}.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/SensorBuilder.java