Class ChangeStreamMetrics
java.lang.Object
org.apache.beam.sdk.io.gcp.bigtable.changestreams.ChangeStreamMetrics
- All Implemented Interfaces:
Serializable
Class to aggregate metrics related functionality.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CounterCounter for the total number of ChangeStreamMutations that are initiated by garbage collection (not user initiated) identified during the execution of the Connector.static final CounterCounter for the total number of ChangeStreamMutations that are initiated by users (not garbage collection) identified during the execution of the Connector.static final CounterCounter for the total number of heartbeats identified during the execution of the Connector.static final CounterCounter for the total number of heartbeats identified during the execution of the Connector.static final CounterCounter for the total number of partitions identified during the execution of the Connector.static final CounterCounter for the total number of orphaned new partitions cleaned up.static final CounterCounter for the total number of partition merges identified during the execution of the Connector.static final CounterCounter for the total number of partitions reconciled with continuation tokens.static final CounterCounter for the total number of partitions reconciled without continuation tokens.static final CounterCounter for the total number of partition splits / moves identified during the execution of the Connector.static final CounterCounter for the total number of active partitions being streamed.static final DistributionDistribution for measuring processing delay from commit timestamp. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDecrements thePARTITION_STREAM_COUNTby 1.voidIncrements theCHANGE_STREAM_MUTATION_GC_COUNTby 1 if the metric is enabled.voidIncrements theCHANGE_STREAM_MUTATION_USER_COUNTby 1 if the metric is enabled.voidIncrements theCLOSESTREAM_COUNTby 1 if the metric is enabled.voidIncrements theHEARTBEAT_COUNTby 1 if the metric is enabled.voidIncrements theLIST_PARTITIONS_COUNTby 1 if the metric is enabled.voidIncrements theORPHANED_NEW_PARTITION_CLEANED_COUNTby 1.voidIncrements thePARTITION_MERGE_COUNTby 1 if the metric is enabled.voidIncrements thePARTITION_RECONCILED_WITHOUT_TOKEN_COUNTby 1.voidIncrements thePARTITION_RECONCILED_WITH_TOKEN_COUNTby 1.voidIncrements thePARTITION_SPLIT_COUNTby 1 if the metric is enabled.voidIncrements thePARTITION_STREAM_COUNTby 1.voidupdateProcessingDelayFromCommitTimestamp(long durationInMilli) Adds measurement of an instance for thePROCESSING_DELAY_FROM_COMMIT_TIMESTAMP.
-
Field Details
-
LIST_PARTITIONS_COUNT
Counter for the total number of partitions identified during the execution of the Connector. -
PARTITION_SPLIT_COUNT
Counter for the total number of partition splits / moves identified during the execution of the Connector. -
PARTITION_MERGE_COUNT
Counter for the total number of partition merges identified during the execution of the Connector. -
PARTITION_RECONCILED_WITH_TOKEN_COUNT
Counter for the total number of partitions reconciled with continuation tokens. -
PARTITION_RECONCILED_WITHOUT_TOKEN_COUNT
Counter for the total number of partitions reconciled without continuation tokens. -
ORPHANED_NEW_PARTITION_CLEANED_COUNT
Counter for the total number of orphaned new partitions cleaned up. -
HEARTBEAT_COUNT
Counter for the total number of heartbeats identified during the execution of the Connector. -
CLOSESTREAM_COUNT
Counter for the total number of heartbeats identified during the execution of the Connector. -
CHANGE_STREAM_MUTATION_USER_COUNT
Counter for the total number of ChangeStreamMutations that are initiated by users (not garbage collection) identified during the execution of the Connector. -
CHANGE_STREAM_MUTATION_GC_COUNT
Counter for the total number of ChangeStreamMutations that are initiated by garbage collection (not user initiated) identified during the execution of the Connector. -
PROCESSING_DELAY_FROM_COMMIT_TIMESTAMP
Distribution for measuring processing delay from commit timestamp. -
PARTITION_STREAM_COUNT
Counter for the total number of active partitions being streamed.
-
-
Constructor Details
-
ChangeStreamMetrics
public ChangeStreamMetrics()
-
-
Method Details
-
incListPartitionsCount
public void incListPartitionsCount()Increments theLIST_PARTITIONS_COUNTby 1 if the metric is enabled. -
incPartitionSplitCount
public void incPartitionSplitCount()Increments thePARTITION_SPLIT_COUNTby 1 if the metric is enabled. -
incPartitionMergeCount
public void incPartitionMergeCount()Increments thePARTITION_MERGE_COUNTby 1 if the metric is enabled. -
incPartitionReconciledWithTokenCount
public void incPartitionReconciledWithTokenCount()Increments thePARTITION_RECONCILED_WITH_TOKEN_COUNTby 1. -
incPartitionReconciledWithoutTokenCount
public void incPartitionReconciledWithoutTokenCount()Increments thePARTITION_RECONCILED_WITHOUT_TOKEN_COUNTby 1. -
incOrphanedNewPartitionCleanedCount
public void incOrphanedNewPartitionCleanedCount()Increments theORPHANED_NEW_PARTITION_CLEANED_COUNTby 1. -
incHeartbeatCount
public void incHeartbeatCount()Increments theHEARTBEAT_COUNTby 1 if the metric is enabled. -
incClosestreamCount
public void incClosestreamCount()Increments theCLOSESTREAM_COUNTby 1 if the metric is enabled. -
incChangeStreamMutationUserCounter
public void incChangeStreamMutationUserCounter()Increments theCHANGE_STREAM_MUTATION_USER_COUNTby 1 if the metric is enabled. -
incChangeStreamMutationGcCounter
public void incChangeStreamMutationGcCounter()Increments theCHANGE_STREAM_MUTATION_GC_COUNTby 1 if the metric is enabled. -
incPartitionStreamCount
public void incPartitionStreamCount()Increments thePARTITION_STREAM_COUNTby 1. -
decPartitionStreamCount
public void decPartitionStreamCount()Decrements thePARTITION_STREAM_COUNTby 1. -
updateProcessingDelayFromCommitTimestamp
public void updateProcessingDelayFromCommitTimestamp(long durationInMilli) Adds measurement of an instance for thePROCESSING_DELAY_FROM_COMMIT_TIMESTAMP.
-