How can I turn on monitoring for an AWS DMS task?
How can I turn on monitoring for an AWS Database Migration Service (AWS DMS) task?
"How can I turn on monitoring for an AWS Database Migration Service (AWS DMS) task?Short descriptionYou can use Amazon CloudWatch logs to monitor the progress of your DMS task, the resources used, and the network activity used. Monitor an AWS DMS task by using the AWS DMS console, the AWS Command Line Interface (AWS CLI), or the AWS DMS API.ResolutionNote: If you receive errors when running AWS CLI commands, make sure that you’re using the most recent version of the AWS CLI.Turn on task loggingTo modify a DMS task, the task must be in a stopped or failed state.Open the AWS DMS console, and then choose Database migration tasks from the navigation pane.Select your task, choose Actions, and then choose Modify.From the Task Settings pane, choose Enable CloudWatch logs.Choose Save.Check the task's progressOpen the AWS DMS console, and then choose Database migration tasks from the navigation pane.Choose the name of the task that you want to monitor.From the Table Statistics section, review the load states of your AWS DMS task.For more information about the status of your task, see Task status.View the Amazon CloudWatch logsOpen the AWS DMS console, and then choose Database migration tasks from the navigation pane.Choose the name of the task that you want to review.From the Overview details section, choose View logs.View the Amazon CloudWatch metricsOpen AWS DMS console, and then choose Database migration tasks from the navigation pane.Choose the name of the task that you want to monitor.From CloudWatch metrics, view the metrics for your task.Check the metrics for CDCLatencySource and CDCLatencyTarget during the CDC phase of the task. Review these metrics to identify potential latency in the source or target. For more information, see Monitoring replication tasks using Amazon CloudWatch.Check task configuration and settingsOpen the AWS DMS console, and then choose Database migration tasks from the navigation pane.Choose the name of the task that you want to review.From the Overview details section, you can see the Basic configuration and Task settings for your task.View the metrics for a replication instanceOpen the AWS DMS console, and then choose Replication instances from the navigation pane.Choose the name of the replication instance in use.From the CloudWatch metrics tab, review the metrics for CPU utilization, freeable memory, free storage space, and SWAP usage.Use advanced settingsOpen the AWS DMS console, and then choose Database migration tasks from the navigation pane.Select your task, choose Actions, and then choose Modify.Expand Advanced task settings.In the Create control table in target using schema field, enter the name of your schema on the target database where AWS DMS can create its control tables.In the History timeslot (minutes), enter the amount of time you want each history record to stay in the replication history table.In the Enable control table section, for Apply Exceptions, awsdms_apply_exceptions is always turned on. Optionally, you can add these control tables to monitor additional details about the task:Replication Status - awsdms_statusSuspended Tables - awsdms_suspended_tablesReplication History - awsdms_historyNote: These control tables are created in the target instance. They can be viewed only by using a SELECT query in the target control schema in the target database instance.Related informationControl table task settingsMigration step-by-step guideWorking with AWS DMS tasksFollow"