Database Migration Service collecte et affiche des métriques de tâche de migration qui représentent l'état et la progression de votre processus de migration de données.
Le tableau suivant liste et décrit les métriques de la tâche de migration que vous pouvez afficher sur la page d'informations sur la tâche de migration. Vous pouvez afficher les métriques suivantes pour toutes les bases de données incluses dans votre tâche de migration ou uniquement celles que vous avez sélectionnées pour la migration:
Métrique de migration
Description
Délai de réplication
Utilisez cette métrique lorsque vous envisagez de promouvoir une migration continue. Le délai de réplication doit être nul au moment de la promotion afin d'éviter toute perte de données. Notez que cette métrique n'est pertinente que pendant la phase de capture des données modifiées (CDC, Change Data Capture). Pour en savoir plus sur la promotion de tâches, consultez la section Promouvoir une migration.
Utilisation de l'espace de stockage en nombre total d'octets
Indique le nombre de Go utilisés par l'instance AlloyDB pour PostgreSQL de destination. Utilisez cette métrique pour obtenir une indication approximative de la progression de la tâche de migration.
Vous pouvez utiliser les métriques suivantes pour surveiller vos migrations:
La métrique migration_job/initial_sync_complete indique quand la phase de vidage complet est terminée pour une base de données spécifique ou pour l'ensemble de la tâche de migration. Vous pouvez afficher cette métrique au niveau de la migration ou de la base de données en appliquant le libellé database. Si le libellé de la base de données est présent, la valeur de la métrique s'applique à cette base de données spécifique. Si le libellé n'est pas renseigné, la valeur de la métrique s'applique à l'ensemble de la tâche de migration.
La métrique migration_job/max_replica_bytes_lag indique la taille des données de journal qui ne sont pas encore répliquées dans la destination. Vous pouvez afficher cette métrique au niveau de la migration ou de la base de données en appliquant le libellé database. Si le libellé de la base de données est présent, la valeur de la métrique s'applique à cette base de données spécifique. Si le libellé n'est pas renseigné, la valeur de la métrique s'applique à l'ensemble de la tâche de migration.
La métrique migration_job/max_replica_sec_lag indique le temps (en secondes) pendant lequel la base de données de destination est en retard par rapport à la base de données source. Vous ne pouvez afficher cette métrique qu'au niveau de la migration.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/03 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/03 (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)."]]