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
Fields Modifier and Type Field Description static int
RATE_GAUGE_CACHE_DURATION_IN_SECONDS
-
Constructor Summary
Constructors Constructor Description LongAdderRateGauge()
LongAdderRateGauge(Time time)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getRate()
double
measure(io.tehuti.metrics.MetricConfig config, long currentTimeMs)
void
record()
void
record(long amount)
-
-
-
Field Detail
-
RATE_GAUGE_CACHE_DURATION_IN_SECONDS
public static final int RATE_GAUGE_CACHE_DURATION_IN_SECONDS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LongAdderRateGauge
public LongAdderRateGauge()
-
LongAdderRateGauge
public LongAdderRateGauge(Time time)
-
-
Method Detail
-
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()
-
-