Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Database Migration Service raccoglie e mostra le metriche dei job di migrazione che rappresentano lo stato e l'avanzamento del processo di migrazione dei dati. Questa pagina descrive le seguenti aree associate alle metriche dei job di migrazione:
Metriche disponibili in Cloud Monitoring descrive tutte le metriche
relative al rendimento del job di migrazione, incluse le metriche visualizzate dall'istanza di destinazione PostgreSQL.
Metriche disponibili nella pagina dei dettagli del job di migrazione
La pagina dei dettagli del job di migrazione mostra diversi diagrammi che possono aiutarti a comprendere
lo stato attuale e l'avanzamento del job di migrazione. Puoi filtrare le informazioni in questi diagrammi per ogni database incluso nel job di migrazione.
Figura 1. Diagrammi di osservabilità di esempio in Database Migration Service.
(fai clic per ingrandire)
Espandi le sezioni seguenti per saperne di più su ciascun diagramma e sulla relativa metrica. Database Migration Service esegue la migrazione di un singolo database per le migrazioni Oracle eterogenee. Ogni metrica rappresenta i dati pertinenti
al database che stai migrando.
Throughput
Il diagramma Throughput utilizza la metrica
migration_job/write_bytes_count per rappresentare la quantità di dati (in byte) che Database Migration Service ha scritto nel database di destinazione. Questa metrica viene campionata ogni 60 secondi. Puoi utilizzarlo per osservare
la velocità di scrittura della migrazione.
Utilizzo dello spazio di archiviazione in byte totali
Il diagramma Utilizzo dello spazio di archiviazione in byte totali utilizza la metrica Cloud SQL
database/disk/bytes_used per mostrare la quantità di dati
(in byte) archiviati nel database di cui è stata eseguita la migrazione nell'istanza Cloud SQL di destinazione. Puoi utilizzare queste informazioni per stimare l'avanzamento
del job di migrazione.
Ritardo di replica
Il diagramma Ritardo di replica utilizza la metrica
migration_job/max_replica_sec_lag per rappresentare
la differenza di tempo tra il momento in cui Database Migration Service inizia
a leggere le informazioni Change Data Capture (CDC) nell'origine e il momento
in cui queste informazioni vengono replicate completamente nella destinazione.
Puoi utilizzare queste informazioni per stimare quando
promuovere il job di migrazione
(vuoi iniziare il processo di interruzione quando il ritardo di replica è minimo).
Visualizzare le metriche nella pagina dei dettagli del job di migrazione
Per visualizzare i diagrammi delle metriche nella pagina dei dettagli del job di migrazione, segui questi
passaggi:
Nella console Google Cloud , vai alla pagina Job di migrazione.
Puoi anche utilizzare la
metrica
Cloud SQL cloudsql/database/disk/bytes_used
e confrontarla con la dimensione totale dei database di origine per stimare
l'avanzamento del job di migrazione.
Tipo di metrica Fase di lancio Nome visualizzato
Tipo, Tipo, Unità Risorse monitorate
Descrizione Etichette
migration_job/write_bytes_countBETA Conteggio byte di scrittura
Numero di byte scritti nella destinazione. Campionamento eseguito ogni 60 secondi. Dopo il campionamento, i dati non sono visibili per un massimo di 180 secondi. database: il nome del database.
migration_job/max_replica_bytes_lagBETA Byte di ritardo massimi dei dati del job di migrazione.
Ritardo di replica attuale, aggregato in tutti i dati del job di migrazione. Campionamento eseguito ogni 60 secondi. Dopo il campionamento, i dati non sono visibili per un massimo di 180 secondi. database: il nome del database.
migration_job/max_replica_sec_lagBETA Ritardo massimo in secondi dei dati del job di migrazione
Ritardo di replica attuale, aggregato in tutti i dati del job di migrazione. Campionamento eseguito ogni 60 secondi. Dopo il campionamento, i dati non sono visibili per un massimo di 180 secondi. database: il nome del database.
[[["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 is crucial for continuous migrations, indicating the lag between source and target databases.\u003c/p\u003e\n"],["\u003cp\u003eA replication delay of zero is necessary at the time of promotion to prevent data loss during a continuous migration.\u003c/p\u003e\n"],["\u003cp\u003eThe replication delay metric is only applicable during the incremental load phase of the migration.\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 Cloud SQL for PostgreSQL\n[`database/disk/bytes_used`](/monitoring/api/metrics_gcp_c#cloudsql/database/disk/bytes_used) metric to show how much data\n(in bytes) is stored in the migrated database in your destination\nCloud SQL 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-postgresql/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[Cloud SQL for PostgreSQL `database/disk/bytes_used` metric](/monitoring/api/metrics_gcp_c#cloudsql/database/disk/bytes_used)\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.* |"]]