This article explains a monitoring gap in Redshift zero-ETL replication: the IntegrationLag CloudWatch metric measures how far behind replication is, but it does not signal when replication has stopped, so a stalled integration can go unnoticed while downstream reports run against stale data. It introduces the two metrics added in Redshift patch 204, IntegrationLatestDetectedChange and IntegrationLatestAppliedChange, and shows how to read them as a pair to tell a stall apart from an idle source
Amazon Redshift zero-ETL integration is monitored with the IntegrationLag CloudWatch metric. But IntegrationLag on its own does not reveal a stall: when the integration stops replicating, the metric goes quiet rather than signaling a problem. It gives no indication that a stall has occurred, so downstream reports and jobs run against stale data.
Replication has two halves. The integration stages changes from your source into a replication queue, then applies them into Redshift. A stall in either half is invisible to IntegrationLag, because the metric stops updating rather than moving to flag the problem.
Amazon Redshift patch 204 closes that gap. It added two CloudWatch metrics for monitoring zero-ETL replication health, IntegrationLatestDetectedChange and IntegrationLatestAppliedChange (Cluster versions for Amazon Redshift). Each one marks a different half of the pipeline. This article explains why the gap exists and how to use the new metrics to catch a stall.
Why IntegrationLag goes quiet during a stall
IntegrationLag is documented as "the lag from the time data is committed to your source to the time when the data is available for queries in Amazon Redshift." The metric is computed only when data becomes queryable, so it recalculates on apply.
Suppose the last successful apply completed at 14:00 with a lag of forty seconds. If nothing is applied after that, the metric has no new apply to measure, so it is not recomputed at 15:00 or 16:00. It isn't reporting that replication is healthy, it just has nothing new to reflect. Whatever value remains describes a change that landed hours ago, not the current state of your data.
The same holds if staging stops. Nothing new reaches the queue, so no apply happens, and IntegrationLag has no new value to work from. It freezes at either end of the pipeline. The metric moves again only when the pipeline recovers and starts applying the backlog.
The two new metrics
Both metrics report a timestamp in Unix epoch seconds, carry the IntegrationId dimension, and update every 60 seconds (see Metrics for zero-ETL integrations). One timestamp marks a change entering the replication queue, the other marks it being written into Amazon Redshift.
| Metric | What it marks |
|---|
IntegrationLatestDetectedChange | When the integration last staged a source change in the replication queue |
IntegrationLatestAppliedChange | When the integration last completed ingestion on Amazon Redshift |
Because these are points in time, a stalled apply leaves IntegrationLatestAppliedChange sitting still while wall-clock time keeps moving, so its age grows on its own. IntegrationLag, by contrast, updates only when an apply completes, so it cannot measure a period with no applies.
Reading the metrics as a pair
When data looks stale, start with these two metrics. Together they tell you whether changes are arriving but not being written, or not arriving at all.
IntegrationLatestDetectedChange | IntegrationLatestAppliedChange | What it means |
|---|
| advancing | frozen | apply has stopped; changes are queueing but not being written |
| frozen | frozen | nothing is arriving from the source: idle, or staging has stalled |
| advancing | advancing | healthy |
Read the two metric columns as the state of each half of the pipeline; the right column is the diagnosis.
The idle case matters just as much. If your source has quiet periods, overnight, at weekends, or between batch windows, rising staleness is expected. Comparing the two metrics tells you which case you're looking at, and stops a quiet source from paging you at 3am.
A caveat for multi-database integrations
These metrics are integration-scoped. For integrations replicating more than one database, they report the minimum: the oldest value across databases, so the least recently updated database dominates. A quiet reference database will mask two busy ones, tracking that database's update schedule instead of the integration's health.
If you need per-database visibility, SVV_INTEGRATION carries both values for each database, in latest_detected_change_time and latest_applied_change_time.