private void registerMetrics ( MetricGroup metricGroup ) { metricGroup . gauge ( NUMBER_OF_CHECKPOINTS_METRIC , new CheckpointsCounter ( ) ) ; metricGroup . gauge ( NUMBER_OF_IN_PROGRESS_CHECKPOINTS_METRIC , new InProgressCheckpointsCounter ( ) ) ; metricGroup . gauge ( NUMBER_OF_COMPLETED_CHECKPOINTS_METRIC , new CompletedCheckpointsCounter ( ) ) ; metricGroup . gauge ( NUMBER_OF_FAILED_CHECKPOINTS_METRIC , new FailedCheckpointsCounter ( ) ) ; metricGroup . gauge ( LATEST_RESTORED_CHECKPOINT_TIMESTAMP_METRIC , new LatestRestoredCheckpointTimestampGauge ( ) ) ; metricGroup . gauge ( LATEST_COMPLETED_CHECKPOINT_SIZE_METRIC , new LatestCompletedCheckpointSizeGauge ( ) ) ; metricGroup . gauge ( LATEST_COMPLETED_CHECKPOINT_DURATION_METRIC , new LatestCompletedCheckpointDurationGauge ( ) ) ; metricGroup . gauge ( LATEST_COMPLETED_CHECKPOINT_ALIGNMENT_BUFFERED_METRIC , new LatestCompletedCheckpointAlignmentBufferedGauge ( ) ) ; metricGroup . gauge ( LATEST_COMPLETED_CHECKPOINT_EXTERNAL_PATH_METRIC , new LatestCompletedCheckpointExternalPathGauge ( ) ) ; }
Register the exposed metrics .