Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Database Migration Service collecte et affiche des métriques de job de migration qui représentent l'état et la progression de votre processus de migration de données. Cette page décrit les domaines suivants associés aux métriques des tâches de migration :
La section
Métriques disponibles dans Cloud Monitoring décrit toutes les métriques liées aux performances des jobs de migration, y compris celles qui proviennent du cluster de destination PostgreSQL.
Métriques disponibles sur la page d'informations sur le job de migration
La page d'informations sur le job de migration affiche plusieurs diagrammes qui peuvent vous aider à comprendre l'état actuel et la progression de votre job de migration. Vous pouvez filtrer les informations de ces diagrammes pour chaque base de données incluse dans votre tâche de migration.
Figure 1. Exemples de diagrammes d'observabilité dans Database Migration Service.
(cliquez pour agrandir)
Développez les sections suivantes pour en savoir plus sur chaque diagramme et sur la métrique associée. Database Migration Service migre une seule base de données pour les migrations Oracle hétérogènes. Chaque métrique représente des données pertinentes pour la base de données que vous migrez.
Débit
Le diagramme Débit utilise la métrique migration_job/write_bytes_count pour représenter la quantité de données (en octets) que Database Migration Service a écrites dans votre base de données de destination. Cette métrique est échantillonnée toutes les 60 secondes. Vous pouvez l'utiliser pour observer la vitesse d'écriture de votre migration.
Utilisation de l'espace de stockage en nombre total d'octets
Le graphique Utilisation du stockage en octets utilise la métrique cluster/storage/usage d'AlloyDB pour PostgreSQL pour indiquer la quantité de données (en octets) stockées dans la base de données migrée dans votre instance AlloyDB pour PostgreSQL de destination. Vous pouvez utiliser ces informations pour estimer la progression de votre tâche de migration.
Délai de réplication
Le diagramme Délai de réplication utilise la métrique migration_job/max_replica_sec_lag pour représenter la différence de temps entre le moment où Database Migration Service commence à lire les informations de capture des données modifiées (CDC, Change Data Capture) dans votre source et le moment où ces informations sont entièrement répliquées dans votre destination.
Vous pouvez utiliser ces informations pour estimer le moment où
promouvoir la tâche de migration (vous devez commencer le processus de coupure lorsque le décalage de réplication est le plus faible).
Afficher les métriques sur la page "Détails du job de migration"
Pour afficher les diagrammes de métriques sur la page d'informations sur la tâche de migration, procédez comme suit :
Dans la console Google Cloud , accédez à la page Jobs de migration.
Nombre d'octets écrits dans la destination. Échantillonné toutes les 60 secondes. Après échantillonnage, les données ne sont pas visibles pendant un délai pouvant atteindre 180 secondes. database : nom de la base de données.
migration_job/max_replica_bytes_lagBETA Nombre maximal d'octets de décalage des données du job de migration.
Latence de réplication actuelle, agrégée pour toutes les données du job de migration. Échantillonné toutes les 60 secondes. Après échantillonnage, les données ne sont pas visibles pendant un délai pouvant atteindre 180 secondes. database : nom de la base de données.
migration_job/max_replica_sec_lagBETA Latence maximale en secondes des données du job de migration
Latence de réplication actuelle, agrégée pour toutes les données du job de migration. Échantillonné toutes les 60 secondes. Après échantillonnage, les données ne sont pas visibles pendant un délai pouvant atteindre 180 secondes. database : nom de la base de données.
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/05 (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/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 is crucial for continuous migrations, indicating the lag between source and destination databases.\u003c/p\u003e\n"],["\u003cp\u003eA replication delay of zero is necessary when promoting a continuous migration to prevent data loss.\u003c/p\u003e\n"],["\u003cp\u003eThe replication delay metric is only available in the incremental load phase.\u003c/p\u003e\n"]]],[],null,["Database Migration Service collects and displays migration job metrics that represent the\nhealth and progress of your data migration process. This page describes the\nfollowing areas associated with migration job metrics:\n\n- [Metrics available on the migration job details page](#job-details-page) covers the\n observability information you can view directly in Database Migration Service\n on the migration job details page.\n\n- [Metrics available in Cloud Monitoring](#monitoring-view) describes all metrics\n related to migration job performance, including the metrics surfaced from\n the PostgreSQL destination cluster.\n\nMetrics available on the migration job details page\n\nThe migration job details page shows several diagrams that can help you understand\nthe current state and progress of your migration job. Some diagrams provide\ndatabase-level information, while others focus on table-level data.\n[](#lightbox-trigger) **Figure 1.** Sample observability diagrams in Database Migration Service. (click to enlarge)\n\nExpand the following sections to learn more about each diagram and its associated\nmetric. \n\nThroughput\n\nThe **Throughput** diagram uses the\n[`migration_job/write_bytes_count`](/monitoring/api/metrics_gcp_d_h#datamigration/migration_job/write_bytes_count) metric to represent\nhow much data (in bytes) Database Migration Service has written to your destination\ndatabase. This metric is sampled every 60 seconds. You can use it to observe\nthe write speed of your migration.\n\nThis metric is available in the aggregated view, as well as separately\nfor each table included in your migration job.\n\nFull dump volume\n\nThe **Full dump volume** diagram shows the progress of the full dump phase\nexpressed as the percentage of total full dump data migrated.\nThis metric is available in the aggregated view, as well as separately\nfor each table included in your migration job.\n\n- The aggregated view diagram uses the `migration_job/fulldump_progress_percentage` metric.\n- The table-level diagrams use the `migration_job/fulldump_progress_percentage_per_object` metric.\n\nStorage usage in total bytes\n\nThe **Storage usage in total bytes** diagram uses the AlloyDB for PostgreSQL\n[`cluster/storage/usage`](/monitoring/api/metrics_gcp_a_b#alloydb/cluster/storage/usage) metric to show how much data\n(in bytes) is stored in the migrated database in your destination\nAlloyDB for PostgreSQL instance. You can use this information to estimate the progress\nof your migration job.\n\nReplication delay\n\nThe **Replication delay** diagram uses the\n[`migration_job/max_replica_sec_lag`](/monitoring/api/metrics_gcp_d_h#datamigration/migration_job/max_replica_sec_lag) metric to represent\nthe time difference between the moment when Database Migration Service starts\nreading Change Data Capture (CDC) information in your source, and the moment\nwhen that information is fully replicated in your destination.\nYou can use this information to estimate when to\n[promote the migration job](/database-migration/docs/oracle-to-alloydb/finalize-migration)\n(you want to begin the cutoff process when replication lag is the lowest).\n\nView metrics on the migration job details page\n\nTo view metric diagrams on the migration job details page, perform the following\nsteps:\n\n1. In the Google Cloud console, go to the **Migration jobs** page.\n\n [Go to Migration jobs](https://console.cloud.google.com/dbmigration/migrations)\n2. In the **Jobs** tab, click the display name of your migration job.\n\n The migration job details page opens.\n3. In the **Monitoring** section, use the **View** menu to adjust\n which diagrams you want to display:\n\n - To view metrics aggregated for the whole migration job, click **View** \\\u003e **Aggregated**.\n - To view table-level metrics, click **View** \\\u003e **Tables**, and then select your tables.\n\nMetrics available in Cloud Monitoring\n\nThe following table describes all migration job metrics you can use to\n[create charts in Metrics Explorer](/monitoring/charts/metrics-explorer)\nfor heterogeneous Oracle migrations. The\n[complete metrics Database Migration Service metrics reference](/monitoring/api/metrics_gcp)\nlists several additional metrics, but they are not available for\nheterogeneous Oracle migrations.\n\nYou can also use the\n[AlloyDB for PostgreSQL `alloydb/cluster/storage/usage` metric](/monitoring/api/metrics_gcp_a_b#alloydb/cluster/storage/usage)\nand compare it with the total size of your source databases to estimate\nthe migration job progress.\n\n| Metric type ^Launch stage^ Display name ||\n| Kind, Type, Unit Monitored resources | *Description* Labels |\n|-------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `migration_job/fulldump_progress_percentage` ^BETA^ ***(project)*** Fulldump progress percentage ||\n| `GAUGE`, `DOUBLE`, `%` **[datamigration.googleapis.com/MigrationJob](/monitoring/api/resources#tag_datamigration.googleapis.com/MigrationJob)** | *Progress percentage of the initial fulldump of the migration job.. Sampled every 60 seconds. After sampling, data is not visible for up to 180 seconds.* |\n| `migration_job/fulldump_progress_percentage_per_object` ^BETA^ ***(project)*** Fulldump progress percentage per object ||\n| `GAUGE`, `DOUBLE`, `%` **[datamigration.googleapis.com/MigrationJob](/monitoring/api/resources#tag_datamigration.googleapis.com/MigrationJob)** | *Progress percentage of the initial fulldump of a single table in a migration job. Sampled every 60 seconds. After sampling, data is not visible for up to 180 seconds.* |\n| `migration_``job/``write_``bytes_``count` ^BETA^ Write Bytes Count ||\n| `DELTA`, `INT64`, `By` **[datamigration.googleapis.com/MigrationJob](/monitoring/api/resources#tag_datamigration.googleapis.com/MigrationJob)** | *Number of bytes written to the destination. Sampled every 60 seconds. After sampling, data is not visible for up to 180 seconds.* `database`: Database name. |\n| `migration_``job/``max_``replica_``bytes_``lag` ^BETA^ Max lag bytes of the migration job data. ||\n| `GAUGE`, `INT64`, `By` **[datamigration.googleapis.com/MigrationJob](/monitoring/api/resources#tag_datamigration.googleapis.com/MigrationJob)** | *Current replication lag, aggregated across all of the migration job's data. Sampled every 60 seconds. After sampling, data is not visible for up to 180 seconds.* `database`: Database name. |\n| `migration_``job/``max_``replica_``sec_``lag` ^BETA^ Max lag in seconds of the migration job data ||\n| `GAUGE`, `INT64`, `s` **[datamigration.googleapis.com/MigrationJob](/monitoring/api/resources#tag_datamigration.googleapis.com/MigrationJob)** | *Current replication lag, aggregated across all of the migration job's data. Sampled every 60 seconds. After sampling, data is not visible for up to 180 seconds.* `database`: Database name. |\n| `migration_job/unsupported_events_count` ^BETA^ ***(project)*** Unsupported Events Count ||\n| `DELTA`, `INT64`, `By` **[datamigration.googleapis.com/MigrationJob](/monitoring/api/resources#tag_datamigration.googleapis.com/MigrationJob)** | *Number of unsupported events per migration and per table. Sampled every 60 seconds. After sampling, data is not visible for up to 180 seconds.* |"]]