Class AggKafkaConsumerServiceStats

All Implemented Interfaces:
StoreDataChangedListener

public class AggKafkaConsumerServiceStats extends AbstractVeniceAggStoreStats<KafkaConsumerServiceStats>
This class is an aggregate place that keeps stats objects for multiple stores and total stats for each region for AggKafkaConsumerService. For total stats for a given region, use this class to record stats. For store-level stats, delegate them to KafkaConsumerServiceStats.
  • Constructor Details

    • AggKafkaConsumerServiceStats

      public AggKafkaConsumerServiceStats(String regionName, io.tehuti.metrics.MetricsRepository metricsRepository, ReadOnlyStoreRepository metadataRepository, LongSupplier getMaxElapsedTimeSinceLastPollInConsumerPool, boolean isUnregisterMetricForDeletedStoreEnabled)
  • Method Details

    • recordTotalConsumerIdleTime

      public void recordTotalConsumerIdleTime(double idleTime)
    • recordTotalPollRequestLatency

      public void recordTotalPollRequestLatency(double latency)
    • recordTotalNonZeroPollResultNum

      public void recordTotalNonZeroPollResultNum(int count)
    • recordTotalConsumerRecordsProducingToWriterBufferLatency

      public void recordTotalConsumerRecordsProducingToWriterBufferLatency(double latency)
    • recordTotalPollError

      public void recordTotalPollError()
    • recordTotalDetectedDeletedTopicNum

      public void recordTotalDetectedDeletedTopicNum(int count)
    • recordTotalDetectedNoRunningIngestionTopicPartitionNum

      public void recordTotalDetectedNoRunningIngestionTopicPartitionNum(int count)
    • recordTotalDelegateSubscribeLatency

      public void recordTotalDelegateSubscribeLatency(double value)
    • recordTotalUpdateCurrentAssignmentLatency

      public void recordTotalUpdateCurrentAssignmentLatency(double value)
    • recordTotalMinPartitionsPerConsumer

      public void recordTotalMinPartitionsPerConsumer(int count)
    • recordTotalMaxPartitionsPerConsumer

      public void recordTotalMaxPartitionsPerConsumer(int count)
    • recordTotalAvgPartitionsPerConsumer

      public void recordTotalAvgPartitionsPerConsumer(int count)
    • recordTotalSubscribedPartitionsNum

      public void recordTotalSubscribedPartitionsNum(int count)
    • recordTotalOffsetLagIsAbsent

      public void recordTotalOffsetLagIsAbsent()
    • recordTotalOffsetLagIsPresent

      public void recordTotalOffsetLagIsPresent()
    • recordTotalLatestOffsetIsAbsent

      public void recordTotalLatestOffsetIsAbsent()
    • recordTotalLatestOffsetIsPresent

      public void recordTotalLatestOffsetIsPresent()