Class PushJobStatusStats
java.lang.Object
com.linkedin.venice.stats.AbstractVeniceStats
com.linkedin.venice.controller.stats.PushJobStatusStats
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.linkedin.venice.stats.AbstractVeniceStats
DELIMITER -
Constructor Summary
ConstructorsConstructorDescriptionPushJobStatusStats(io.tehuti.metrics.MetricsRepository metricsRepository, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidrecordBatchPushFailureDueToUserErrorSensor(String storeName) voidvoidrecordBatchPushSuccessSensor(String storeName) voidrecordDataWriterSinkWriteTime(String storeName, Version.PushType pushType, VenicePushJobDataWriterSink sink, long timeMs) Record how long a terminal push's data-writer tasks spent writing to one of the two sinks.voidrecordExternalStorageWriteFailure(String storeName, String regionName) Record that a push exhausted its external-storage write retries inregionNameand that the region's version storage mode was consequently failed open toINTERNAL.voidvoidvoidrecordIncrementalPushSuccessSensor(String storeName) Methods inherited from class com.linkedin.venice.stats.AbstractVeniceStats
avgAndMax, avgAndTotal, getMetricFullName, getMetricsRepository, getName, getSensorFullName, getSensorFullName, isTotalStats, minAndMax, registerOnlyTotalRate, registerOnlyTotalSensor, registerPerStoreAndTotal, registerPerStoreAndTotalSensor, registerSensor, registerSensor, registerSensor, registerSensor, registerSensorAttributeGauge, registerSensorIfAbsent, registerSensorIfAbsent, registerSensorIfAbsent, registerSensorWithAggregate, registerSensorWithAggregate, unregisterAllSensors
-
Constructor Details
-
PushJobStatusStats
-
-
Method Details
-
recordBatchPushSuccessSensor
-
recordBatchPushFailureDueToUserErrorSensor
-
recordBatchPushFailureNotDueToUserErrorSensor
-
recordIncrementalPushSuccessSensor
-
recordIncrementalPushFailureDueToUserErrorSensor
-
recordIncrementalPushFailureNotDueToUserErrorSensor
-
recordDataWriterSinkWriteTime
public void recordDataWriterSinkWriteTime(String storeName, Version.PushType pushType, VenicePushJobDataWriterSink sink, long timeMs) Record how long a terminal push's data-writer tasks spent writing to one of the two sinks.timeMsis the sum of the per-task wall-clock durations reported by the push job, not the push's own wall-clock duration. Negative values mean the push did not report the duration (older push job or no dual write configured) and are dropped rather than recorded as a bogus observation. Callers are responsible for invoking this at most once per push per sink; see the dedup inVeniceHelixAdmin#emitPushJobStatusMetrics. -
recordExternalStorageWriteFailure
Record that a push exhausted its external-storage write retries inregionNameand that the region's version storage mode was consequently failed open toINTERNAL. This is a counter rather than a duration: it exists to be alerted on, since the push itself still succeeds and would otherwise look healthy.Emitted by the controller of the affected region, once per region per accepted downgrade. Push type is deliberately not a dimension because the controller applying the downgrade does not know it, and neither push id nor version number are dimensions because they are unbounded.
-