@Override
    protected void update(Sample sample, MetricConfig config, double value, long now) {
        sample.value += value;
    }
A {@link SampledStat} that maintains a simple average over its samples.
clients/src/main/java/org/apache/kafka/common/metrics/stats/Avg.java