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 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

      public LongAdderRateGauge(Time time)
  • 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 interface io.tehuti.metrics.Measurable
      Overrides:
      measure in class io.tehuti.metrics.stats.Gauge
    • getRate

      public double getRate()