@Override
    public double measure(MetricConfig config, long now) {
        return total;
    }
An non-sampled cumulative total maintained over all time.
This is a non-sampled version of {@link WindowedSum}.

See also {@link CumulativeCount} if you just want to increment the value by 1 on each recording.
clients/src/main/java/org/apache/kafka/common/metrics/stats/CumulativeSum.java