Package com.linkedin.venice.stats
Class LongAdderRateGauge
java.lang.Object
io.tehuti.metrics.stats.Gauge
com.linkedin.venice.stats.LongAdderRateGauge
- All Implemented Interfaces:
io.tehuti.metrics.Measurable
,io.tehuti.metrics.MeasurableStat
,io.tehuti.metrics.Stat
public class LongAdderRateGauge
extends io.tehuti.metrics.stats.Gauge
This metric class is to optimize for high write throughput, low read throughput measurement use case instead of real-time
measurement. The smallest measurement interval is 30 seconds.
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class io.tehuti.metrics.stats.Gauge
record
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.tehuti.metrics.Measurable
measureWithExtraValue
-
Field Details
-
RATE_GAUGE_CACHE_DURATION_IN_SECONDS
public static final int RATE_GAUGE_CACHE_DURATION_IN_SECONDS- See Also:
-
-
Constructor Details
-
LongAdderRateGauge
public LongAdderRateGauge() -
LongAdderRateGauge
-
-
Method Details
-
record
public void record() -
record
public void record(long amount) -
measure
public double measure(io.tehuti.metrics.MetricConfig config, long currentTimeMs) - Specified by:
measure
in interfaceio.tehuti.metrics.Measurable
- Overrides:
measure
in classio.tehuti.metrics.stats.Gauge
-
getRate
public double getRate()
-