O Database Migration Service recolhe e apresenta métricas de tarefas de migração que representam o estado e o progresso do seu processo de migração de dados.
A tabela seguinte apresenta e descreve as métricas da tarefa de migração que pode ver na página de detalhes da tarefa de migração. Pode ver as seguintes métricas para todas as bases de dados incluídas na tarefa de migração ou apenas para as bases de dados que selecionou para migração:
Métrica de migração
Descrição
Atraso na replicação
Use esta métrica quando considerar fazer uma promoção de uma migração contínua. O atraso na replicação deve ser zero no momento da promoção para evitar a perda de dados. Tenha em atenção que esta métrica só é relevante na fase de captura de dados de alterações (CDC). Para mais informações sobre a promoção de tarefas, consulte o artigo
Promova uma
migração.
Utilização de armazenamento em bytes totais
Reflete quantos GB estão a ser usados pela instância do AlloyDB for PostgreSQL de destino. Use esta métrica para ter uma indicação aproximada
do progresso da tarefa de migração.
Pode usar as seguintes métricas para monitorizar as suas migrações:
A métrica migration_job/initial_sync_complete indica quando a fase de descarga completa está concluída para uma base de dados específica ou para toda a tarefa de migração. Pode ver esta métrica ao nível da migração ou da base de dados aplicando a etiqueta database. Se a etiqueta da base de dados estiver presente, o valor da métrica é para essa base de dados específica. Se a etiqueta não estiver preenchida, o valor da métrica é para toda a tarefa de migração.
A métrica migration_job/max_replica_bytes_lag mostra o tamanho dos dados de registo que ainda não foram replicados para o destino. Pode ver esta métrica ao nível da migração ou da base de dados aplicando a etiqueta database. Se a etiqueta da base de dados estiver presente, o valor da métrica é para essa base de dados específica. Se a etiqueta não estiver preenchida, o valor da métrica é para toda a tarefa de migração.
A métrica migration_job/max_replica_sec_lag mostra o tempo (em segundos) que a base de dados de destino está atrasada em relação à base de dados de origem. Só pode ver esta métrica ao nível da migração.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-21 UTC."],[[["\u003cp\u003eDatabase Migration Service provides metrics to monitor the health and progress of data migration jobs.\u003c/p\u003e\n"],["\u003cp\u003eReplication delay, which is crucial for avoiding data loss during continuous migration promotion, is a key metric, especially in the change data capture (CDC) phase.\u003c/p\u003e\n"],["\u003cp\u003eStorage usage in total bytes provides a general indication of the migration job's progress on the destination AlloyDB for PostgreSQL instance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emigration_job/initial_sync_complete\u003c/code\u003e metric signals when the full data dump phase is done, either for a specific database or the whole migration, offering granular insight into the data transfer process.\u003c/p\u003e\n"],["\u003cp\u003eMetrics such as \u003ccode\u003emigration_job/max_replica_bytes_lag\u003c/code\u003e and \u003ccode\u003emigration_job/max_replica_sec_lag\u003c/code\u003e provide insight into the lag between source and destination, helping to gauge the real-time synchronization status.\u003c/p\u003e\n"]]],[],null,["# Migration job metrics\n\n\u003cbr /\u003e\n\n[MySQL](/database-migration/docs/mysql/migration-job-metrics \"View this page for the MySQL version of Database Migration Service.\") \\| [PostgreSQL](/database-migration/docs/postgres/migration-job-metrics \"View this page for the PostgreSQL version of Database Migration Service.\") \\| PostgreSQL to AlloyDB\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nDatabase Migration Service collects and displays migration job metrics that represent the health and progress of your data migration process.\n\nThe following table lists and describes the migration job metrics that you can view on the migration job details page. You can view the following metrics for all databases included in your migration job or only the databases that you selected for migration:\n\nYou can view all [Database Migration Service Cloud Monitoring metrics that relate to migration job performance](/monitoring/api/metrics_gcp_d_h#gcp-datamigration) in the Metrics Explorer. To view each diagram directly in Cloud Monitoring, click more_vert**More chart options \\\u003e View in Metrics Explorer** .\n\n\u003cbr /\u003e\n\nYou can use the following metrics to monitor your migrations:\n\n- The [`migration_job/initial_sync_complete`](/monitoring/api/metrics_gcp_d_h#datamigration/migration_job/initial_sync_complete) metric indicates when the full dump phase is complete for a specific database or the entire migration job. You can view this metric on a migration level or a database level by applying the `database` label. If the database label is present, the metric value is for that particular database. If the label is not populated, the metric value is for the entire migration job.\n- The [`migration_job/max_replica_bytes_lag`](/monitoring/api/metrics_gcp_d_h#datamigration/migration_job/max_replica_bytes_lag) metric shows the size of log data that are not yet replicated to the destination. You can view this metric on a migration level or a database level by applying the `database` label. If the database label is present, the metric value is for that particular database. If the label is not populated, the metric value is for the entire migration job.\n- The [`migration_job/max_replica_sec_lag`](/monitoring/api/metrics_gcp_d_h#datamigration/migration_job/max_replica_sec_lag) metric shows the time (in seconds) that the destination database is behind the source database. You can view this metric only at the migration level.\n\nFor more information about the Metrics Explorer, see [Create charts with Metrics Explorer](/monitoring/charts/metrics-explorer)."]]