Package com.linkedin.davinci.stats
Class IngestionStats
java.lang.Object
com.linkedin.davinci.stats.IngestionStats
This class contains stats for store ingestion. The stat class is used in
VeniceVersionedStats
to serve for
a single store version or total of all store versions.
This class does not contain reporting logic as reporting is done by the IngestionStatsReporter
.-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
static final String
static final String
static final String
static final String
static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
static final String
protected static final String
protected static final String
static final String
protected static final String
protected static final String
protected static final String
static final String
protected static final String
protected static final String
protected static final String
static final String
static final String
protected static final String
static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
static final String
static final String
static final String
protected static final String
static final String
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
double
double
double
long
double
double
double
double
long
double
long
long
double
int
int
double
double
double
double
long
double
double
double
double
double
double
double
double
double
double
double
double
double
double
getRegionHybridAvgConsumedOffset
(int regionId) double
getRegionHybridBytesConsumed
(int regionId) long
getRegionHybridOffsetLag
(int regionId) double
getRegionHybridRecordsConsumed
(int regionId) double
double
double
double
double
double
double
double
int
void
recordBatchProcessingRequest
(int size, long currentTimeMs) void
void
recordBatchProcessingRequestLatency
(double latency, long currentTimeMs) void
recordBytesConsumed
(long value) void
recordConsumedRecordEndToEndProcessingLatency
(double value, long currentTimeMs) void
recordFollowerBytesConsumed
(long value) void
void
recordIdleTime
(long value) void
recordInternalPreprocessingLatency
(double value, long currentTimeMs) void
recordLeaderBytesConsumed
(long value) void
recordLeaderBytesProduced
(long value) void
recordLeaderPreprocessingLatency
(double value, long currentTimeMs) void
recordLeaderProducerCompletionLatencyMs
(double value, long currentTimeMs) void
void
recordLeaderRecordsProduced
(long value) void
recordLocalBrokerFollowerConsumerLatencyMs
(double value, long currentTimeMs) void
recordNearlineLocalBrokerToReadyToServeLatency
(double value, long currentTimeMs) void
recordNearlineProducerToLocalBrokerLatency
(double value, long currentTimeMs) void
void
recordProducerCallBackLatency
(double value, long currentTimeMs) void
recordProducerLocalBrokerLatencyMs
(double value, long currentTimeMs) void
recordProducerSourceBrokerLatencyMs
(double value, long currentTimeMs) void
void
recordRegionHybridAvgConsumedOffset
(int regionId, double value, long currentTimeMs) void
recordRegionHybridBytesConsumed
(int regionId, double value, long currentTimeMs) void
recordRegionHybridRecordsConsumed
(int regionId, double value, long currentTimeMs) void
recordSourceBrokerLeaderConsumerLatencyMs
(double value, long currentTimeMs) void
recordSubscribePrepLatency
(double value, long currentTimeMs) void
void
void
void
recordTransformerError
(double value, long currentTimeMs) void
recordTransformerLatency
(double value, long currentTimeMs) void
recordTransformerLifecycleEndLatency
(double value, long currentTimeMs) void
recordTransformerLifecycleStartLatency
(double value, long currentTimeMs) void
void
void
void
void
void
void
setIngestionTask
(StoreIngestionTask ingestionTask) void
setIngestionTaskPushTimeoutGauge
(int value) static double
unAvailableToZero
(double value)
-
Field Details
-
INGESTION_TASK_ERROR_GAUGE
- See Also:
-
INGESTION_TASK_PUSH_TIMEOUT_GAUGE
- See Also:
-
WRITE_COMPUTE_OPERATION_FAILURE
- See Also:
-
FOLLOWER_OFFSET_LAG
- See Also:
-
LEADER_OFFSET_LAG
- See Also:
-
HYBRID_LEADER_OFFSET_LAG
- See Also:
-
HYBRID_FOLLOWER_OFFSET_LAG
- See Also:
-
BATCH_REPLICATION_LAG
- See Also:
-
BATCH_LEADER_OFFSET_LAG
- See Also:
-
BATCH_FOLLOWER_OFFSET_LAG
- See Also:
-
RECORDS_CONSUMED_METRIC_NAME
- See Also:
-
BYTES_CONSUMED_METRIC_NAME
- See Also:
-
LEADER_RECORDS_CONSUMED_METRIC_NAME
- See Also:
-
LEADER_BYTES_CONSUMED_METRIC_NAME
- See Also:
-
LEADER_STALLED_HYBRID_INGESTION_METRIC_NAME
- See Also:
-
FOLLOWER_RECORDS_CONSUMED_METRIC_NAME
- See Also:
-
FOLLOWER_BYTES_CONSUMED_METRIC_NAME
- See Also:
-
LEADER_RECORDS_PRODUCED_METRIC_NAME
- See Also:
-
LEADER_BYTES_PRODUCED_METRIC_NAME
- See Also:
-
SUBSCRIBE_ACTION_PREP_LATENCY
- See Also:
-
CONSUMED_RECORD_END_TO_END_PROCESSING_LATENCY
- See Also:
-
UPDATE_IGNORED_DCR
- See Also:
-
TOTAL_DCR
- See Also:
-
TIMESTAMP_REGRESSION_DCR_ERROR
- See Also:
-
OFFSET_REGRESSION_DCR_ERROR
- See Also:
-
TOMBSTONE_CREATION_DCR
- See Also:
-
READY_TO_SERVE_WITH_RT_LAG_METRIC_NAME
- See Also:
-
VERSION_TOPIC_END_OFFSET_REWIND_COUNT
- See Also:
-
TRANSFORMER_ERROR_COUNT
- See Also:
-
NEARLINE_PRODUCER_TO_LOCAL_BROKER_LATENCY
- See Also:
-
NEARLINE_LOCAL_BROKER_TO_READY_TO_SERVE_LATENCY
- See Also:
-
TRANSFORMER_LATENCY
- See Also:
-
TRANSFORMER_LIFECYCLE_START_LATENCY
- See Also:
-
TRANSFORMER_LIFECYCLE_END_LATENCY
- See Also:
-
IDLE_TIME
- See Also:
-
PRODUCER_CALLBACK_LATENCY
- See Also:
-
LEADER_PREPROCESSING_LATENCY
- See Also:
-
INTERNAL_PREPROCESSING_LATENCY
- See Also:
-
BATCH_PROCESSING_REQUEST
- See Also:
-
BATCH_PROCESSING_REQUEST_SIZE
- See Also:
-
BATCH_PROCESSING_REQUEST_RECORDS
- See Also:
-
BATCH_PROCESSING_REQUEST_LATENCY
- See Also:
-
BATCH_PROCESSING_REQUEST_ERROR
- See Also:
-
-
Constructor Details
-
IngestionStats
-
-
Method Details
-
getIngestionTask
-
setIngestionTask
-
getIngestionTaskErroredGauge
public int getIngestionTaskErroredGauge() -
getBatchReplicationLag
public long getBatchReplicationLag() -
getLeaderOffsetLag
public long getLeaderOffsetLag() -
getBatchLeaderOffsetLag
public long getBatchLeaderOffsetLag() -
getHybridLeaderOffsetLag
public long getHybridLeaderOffsetLag() -
getFollowerOffsetLag
public long getFollowerOffsetLag()- Returns:
- This stats is usually aggregated across the nodes so that
we can see the overall lags between leaders and followers.
we return 0 instead of
StatsErrorCode.INACTIVE_STORE_INGESTION_TASK
so the negative error code will not mess up the aggregation.
-
getBatchFollowerOffsetLag
public long getBatchFollowerOffsetLag() -
getHybridFollowerOffsetLag
public long getHybridFollowerOffsetLag() -
getRegionHybridOffsetLag
public long getRegionHybridOffsetLag(int regionId) -
getWriteComputeErrorCode
public int getWriteComputeErrorCode() -
getLeaderStalledHybridIngestion
public double getLeaderStalledHybridIngestion()- Returns:
- 1 if the leader offset lag is greater than 0 and not actively ingesting data, otherwise 0.
-
getReadyToServeWithRTLag
public double getReadyToServeWithRTLag() -
getSubscribePrepLatencyAvg
public double getSubscribePrepLatencyAvg() -
getSubscribePrepLatencyMax
public double getSubscribePrepLatencyMax() -
recordSubscribePrepLatency
public void recordSubscribePrepLatency(double value, long currentTimeMs) -
getProducerCallBackLatencyMax
public double getProducerCallBackLatencyMax() -
recordProducerCallBackLatency
public void recordProducerCallBackLatency(double value, long currentTimeMs) -
getLeaderPreprocessingLatencyMax
public double getLeaderPreprocessingLatencyMax() -
getLeaderPreprocessingLatencyAvg
public double getLeaderPreprocessingLatencyAvg() -
recordLeaderPreprocessingLatency
public void recordLeaderPreprocessingLatency(double value, long currentTimeMs) -
getInternalPreprocessingLatencyAvg
public double getInternalPreprocessingLatencyAvg() -
getInternalPreprocessingLatencyMax
public double getInternalPreprocessingLatencyMax() -
recordInternalPreprocessingLatency
public void recordInternalPreprocessingLatency(double value, long currentTimeMs) -
recordVersionTopicEndOffsetRewind
public void recordVersionTopicEndOffsetRewind() -
getVersionTopicEndOffsetRewindCount
public double getVersionTopicEndOffsetRewindCount() -
getConsumedRecordEndToEndProcessingLatencyAvg
public double getConsumedRecordEndToEndProcessingLatencyAvg() -
getConsumedRecordEndToEndProcessingLatencyMax
public double getConsumedRecordEndToEndProcessingLatencyMax() -
recordConsumedRecordEndToEndProcessingLatency
public void recordConsumedRecordEndToEndProcessingLatency(double value, long currentTimeMs) -
getRecordsConsumed
public double getRecordsConsumed() -
recordRecordsConsumed
public void recordRecordsConsumed() -
getBytesConsumed
public double getBytesConsumed() -
recordBytesConsumed
public void recordBytesConsumed(long value) -
getLeaderRecordsConsumed
public double getLeaderRecordsConsumed() -
recordLeaderRecordsConsumed
public void recordLeaderRecordsConsumed() -
getLeaderBytesConsumed
public double getLeaderBytesConsumed() -
recordLeaderBytesConsumed
public void recordLeaderBytesConsumed(long value) -
getFollowerRecordsConsumed
public double getFollowerRecordsConsumed() -
recordFollowerRecordsConsumed
public void recordFollowerRecordsConsumed() -
getFollowerBytesConsumed
public double getFollowerBytesConsumed() -
recordFollowerBytesConsumed
public void recordFollowerBytesConsumed(long value) -
recordUpdateIgnoredDCR
public void recordUpdateIgnoredDCR() -
recordTotalDCR
public void recordTotalDCR() -
recordTimestampRegressionDCRError
public void recordTimestampRegressionDCRError() -
recordOffsetRegressionDCRError
public void recordOffsetRegressionDCRError() -
recordTombStoneCreationDCR
public void recordTombStoneCreationDCR() -
getRegionHybridBytesConsumed
public double getRegionHybridBytesConsumed(int regionId) -
recordRegionHybridBytesConsumed
public void recordRegionHybridBytesConsumed(int regionId, double value, long currentTimeMs) -
getRegionHybridRecordsConsumed
public double getRegionHybridRecordsConsumed(int regionId) -
recordRegionHybridRecordsConsumed
public void recordRegionHybridRecordsConsumed(int regionId, double value, long currentTimeMs) -
getRegionHybridAvgConsumedOffset
public double getRegionHybridAvgConsumedOffset(int regionId) -
recordRegionHybridAvgConsumedOffset
public void recordRegionHybridAvgConsumedOffset(int regionId, double value, long currentTimeMs) -
getLeaderRecordsProduced
public double getLeaderRecordsProduced() -
getUpdateIgnoredRate
public double getUpdateIgnoredRate() -
getTotalDCRRate
public double getTotalDCRRate() -
getTombstoneCreationDCRRate
public double getTombstoneCreationDCRRate() -
getTimestampRegressionDCRRate
public double getTimestampRegressionDCRRate() -
getOffsetRegressionDCRRate
public double getOffsetRegressionDCRRate() -
recordLeaderRecordsProduced
public void recordLeaderRecordsProduced(long value) -
getLeaderBytesProduced
public double getLeaderBytesProduced() -
recordLeaderBytesProduced
public void recordLeaderBytesProduced(long value) -
setIngestionTaskPushTimeoutGauge
public void setIngestionTaskPushTimeoutGauge(int value) -
getIngestionTaskPushTimeoutGauge
public int getIngestionTaskPushTimeoutGauge() -
getNearlineProducerToLocalBrokerLatencyAvg
public double getNearlineProducerToLocalBrokerLatencyAvg() -
getNearlineProducerToLocalBrokerLatencyMax
public double getNearlineProducerToLocalBrokerLatencyMax() -
getNearlineLocalBrokerToReadyToServeLatencyAvg
public double getNearlineLocalBrokerToReadyToServeLatencyAvg() -
getNearlineLocalBrokerToReadyToServeLatencyMax
public double getNearlineLocalBrokerToReadyToServeLatencyMax() -
recordNearlineProducerToLocalBrokerLatency
public void recordNearlineProducerToLocalBrokerLatency(double value, long currentTimeMs) -
recordNearlineLocalBrokerToReadyToServeLatency
public void recordNearlineLocalBrokerToReadyToServeLatency(double value, long currentTimeMs) -
recordTransformerError
public void recordTransformerError(double value, long currentTimeMs) -
registerTransformerErrorSensor
public void registerTransformerErrorSensor() -
getTransformerErrorCount
public double getTransformerErrorCount() -
recordTransformerLatency
public void recordTransformerLatency(double value, long currentTimeMs) -
registerTransformerLatencySensor
public void registerTransformerLatencySensor() -
recordTransformerLifecycleStartLatency
public void recordTransformerLifecycleStartLatency(double value, long currentTimeMs) -
registerTransformerLifecycleStartLatencySensor
public void registerTransformerLifecycleStartLatencySensor() -
recordTransformerLifecycleEndLatency
public void recordTransformerLifecycleEndLatency(double value, long currentTimeMs) -
registerTransformerLifecycleEndLatencySensor
public void registerTransformerLifecycleEndLatencySensor() -
recordIdleTime
public void recordIdleTime(long value) -
getIdleTime
public double getIdleTime() -
getProducerSourceBrokerLatencySensor
-
recordProducerSourceBrokerLatencyMs
public void recordProducerSourceBrokerLatencyMs(double value, long currentTimeMs) -
recordSourceBrokerLeaderConsumerLatencyMs
public void recordSourceBrokerLeaderConsumerLatencyMs(double value, long currentTimeMs) -
getSourceBrokerLeaderConsumerLatencySensor
-
recordProducerLocalBrokerLatencyMs
public void recordProducerLocalBrokerLatencyMs(double value, long currentTimeMs) -
getProducerLocalBrokerLatencySensor
-
recordLocalBrokerFollowerConsumerLatencyMs
public void recordLocalBrokerFollowerConsumerLatencyMs(double value, long currentTimeMs) -
getLocalBrokerFollowerConsumerLatencySensor
-
recordLeaderProducerCompletionLatencyMs
public void recordLeaderProducerCompletionLatencyMs(double value, long currentTimeMs) -
getLeaderProducerCompletionLatencySensor
-
recordBatchProcessingRequest
public void recordBatchProcessingRequest(int size, long currentTimeMs) -
getBatchProcessingRequest
public double getBatchProcessingRequest() -
getBatchProcessingRequestRecords
public double getBatchProcessingRequestRecords() -
recordBatchProcessingRequestError
public void recordBatchProcessingRequestError() -
getBatchProcessingRequestError
public double getBatchProcessingRequestError() -
getBatchProcessingRequestSizeSensor
-
recordBatchProcessingRequestLatency
public void recordBatchProcessingRequestLatency(double latency, long currentTimeMs) -
getBatchProcessingRequestLatencySensor
-
unAvailableToZero
public static double unAvailableToZero(double value)
-