Database Migration Service raccoglie e mostra le metriche dei job di migrazione che rappresentano l'integrità e l'avanzamento del processo di migrazione dei dati.
La tabella seguente elenca e descrive le metriche del job di migrazione che puoi visualizzare nella pagina dei dettagli del job di migrazione. Puoi visualizzare le seguenti metriche per tutti i database inclusi nel job di migrazione o solo per i database selezionati per la migrazione:
Metrica di migrazione
Descrizione
Ritardo di replica
Rappresenta il numero di byte del database di destinazione rispetto al database di origine. Utilizza questa metrica quando valuti la possibilità di eseguire una promozione di una
migrazione continua. Il ritardo della replica deve essere pari a zero al momento della promozione per evitare la perdita di dati. Tieni presente che questa metrica è pertinente solo
nella fase di acquisizione dei dati sulle modifiche (CDC). Per scoprire di più sulla promozione dei job, consulta
Promuovere una
migrazione.
Utilizzo dello spazio di archiviazione
Riflette la quantità di GB utilizzati dall'istanza Cloud SQL di destinazione. Utilizza questa metrica per avere un'indicazione approssimativa
dell'avanzamento del job di migrazione.
Per monitorare le migrazioni, puoi utilizzare le seguenti metriche:
La metrica migration_job/initial_sync_complete indica quando la fase di dump completo è completata per un database specifico o per l'intero job di migrazione. Puoi visualizzare questa metrica a livello di migrazione o di database applicando l'etichetta database. Se l'etichetta del database è presente, il valore della metrica si riferisce a quel determinato database. Se l'etichetta non è compilata, il valore della metrica si riferisce all'intero job di migrazione.
La metrica migration_job/max_replica_bytes_lag mostra le dimensioni dei dati dei log non ancora replicati nella destinazione. Puoi visualizzare questa metrica a livello di migrazione o di database applicando l'etichetta database. Se l'etichetta del database è presente, il valore della metrica si riferisce a quel determinato database. Se l'etichetta non è compilata, il valore della metrica si riferisce all'intero job di migrazione.
La metrica migration_job/max_replica_sec_lag mostra il tempo (in secondi) che il database di destinazione è in ritardo rispetto al database di origine. Puoi visualizzare questa metrica solo a livello di migrazione.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-05 UTC."],[[["\u003cp\u003eDatabase Migration Service provides metrics to monitor the health and progress of data migration jobs.\u003c/p\u003e\n"],["\u003cp\u003eThe Replication Delay metric indicates how many bytes the destination database lags behind the source, crucial for determining when to promote a continuous migration without data loss.\u003c/p\u003e\n"],["\u003cp\u003eStorage Usage metric helps you see the storage consumed by the destination Cloud SQL instance to give you a rough estimate of the migration job progression.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emigration_job/initial_sync_complete\u003c/code\u003e metric indicates if a database or the entire migration job has finished the full dump phase.\u003c/p\u003e\n"],["\u003cp\u003eThe metrics \u003ccode\u003emigration_job/max_replica_bytes_lag\u003c/code\u003e and \u003ccode\u003emigration_job/max_replica_sec_lag\u003c/code\u003e help in understanding the amount of uncopied log data, and the time the destination is behind the source, for a database or the whole migration job respectively.\u003c/p\u003e\n"]]],[],null,["# Migration job metrics\n\n\u003cbr /\u003e\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 \\| [PostgreSQL to AlloyDB](/database-migration/docs/postgresql-to-alloydb/migration-job-metrics \"View this page for the PostgreSQL to AlloyDB version of Database Migration Service.\")\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)."]]