SHOW VIRTUAL CLUSTER... WITH REPLICATION STATUSin the SQL shell.- The on the DB Console.
- Prometheus and Alertmanager to track and alert on replication metrics.
SQL Shell
In the standby cluster’s SQL shell, you can querySHOW VIRTUAL CLUSTER... WITH REPLICATION STATUS for detail on status and timestamps for planning :
Responses
Data state
DB Console
You can use the of the standby cluster’s to monitor:Prometheus
You can use Prometheus and Alertmanager to track and alert on PCR metrics. Refer to the tutorial for steps to set up Prometheus. We recommend tracking the following metrics:physical_replication.logical_bytes: The logical bytes (the sum of all keys and values) ingested by all PCR jobs.physical_replication.replicated_time_seconds: The of the physical replication stream in seconds since the Unix epoch.
Data verification
This feature is in and subject to change. To share feedback and/or issues, contact Support.
SHOW EXPERIMENTAL_FINGERPRINTS statement verifies that the data transmission and ingestion is working as expected while a replication stream is running. Any checksum mismatch likely represents corruption or a bug in CockroachDB. SHOW EXPERIMENTAL_FINGERPRINTS is only to verify data. Should you encounter such a mismatch, contact Support.
To verify that the data at a certain point in time is correct on the standby cluster, you can use the from the replication job information to run a point-in-time fingerprint on both the primary and standby clusters. This will verify that the transmission and ingestion of the data on the standby cluster, at that point in time, is correct.
-
Retrieve the current replicated time of the replication job on the standby cluster with :
For detail on connecting to the standby cluster, refer to .
-
From the primary cluster’s system virtual cluster, specify a timestamp at or earlier than the current
replicated_timeto retrieve the fingerprint. This example uses the currentreplicated_time:For detail on connecting to the primary cluster, refer to . -
From the standby cluster’s system virtual cluster, specify the same timestamp used on the primary cluster to retrieve the standby cluster’s fingerprint:
- Compare the fingerprints of the primary and standby clusters to verify the data. The same value for the fingerprints indicates the data is correct.

