Back to Yugabyte Db

Change data capture (CDC) observability in YugabyteDB Anywhere

docs/content/stable/yugabyte-platform/alerts-monitoring/cdc-observability.md

2026.1.0.0-b251.9 KB
Original Source

YugabyteDB Anywhere supports monitoring YSQL replication slots used by CDC with the PostgreSQL replication protocol. A replication slot is a PostgreSQL feature which ensures that a stream of changes stored in a WAL log file is replicated to the destination in the correct order.

You can view all the replications that are present in a universe along with the following service metrics associated with each CDC replication slot:

  • Current lag
  • Time to expire
  • Messages emitted
  • Bytes emitted

The following table describes the CDC service metrics available.

Metric NameDetails
cdcsdk_sent_lag_microsCurrent lag. Lag between the last committed record in the producer and last sent record.
cdcsdk_expiry_time_msTime to expire. Remaining expiry time of CDC replication slot in milliseconds.
cdcsdk_change_event_countMessages emitted. The change event count metric shows the number of records sent by the CDC service.
cdcsdk_traffic_sentBytes emitted. Total traffic sent in bytes from the CDC replication slot.

For more information on CDC metrics, refer to Monitor CDC.

To view your universe's replication slots, navigate to your universe and select the CDC Replication Slots tab.

CDC Replication Slots lists all replications, database names, and the slot status. You can also view detailed metrics by selecting a replication slot in the list.

Limitation

  • Currently, YugabyteDB supports CDC replication slots only for YSQL databases.

Learn more