public void addMeter(String name, Metered meter) { final Long deltaCount = deltaTracker.getDelta(name, meter.getCount()); maybeAdd(COUNT, name, deltaCount); maybeAdd(RATE_MEAN, name, convertRate(meter.getMeanRate())); maybeAdd(RATE_1_MINUTE, name, convertRate(meter.getOneMinuteRate())); maybeAdd(RATE_5_MINUTE, name, convertRate(meter.getFiveMinuteRate())); maybeAdd(RATE_15_MINUTE, name, convertRate(meter.getFifteenMinuteRate())); }
public void addHistogram(String name, Histogram histogram) { final Long countDelta = deltaTracker.getDelta(name, histogram.getCount()); maybeAdd(COUNT, name, countDelta); final boolean convertDurations = false; addSampling(name, histogram, convertDurations); }