Skip to main content
The Changefeed metrics let you monitor the performance of your . To view these graphs, select a cluster from the , and click Metrics in the Monitoring section of the left side navigation. On the Metrics page, click the Changefeeds tab.

Time interval selection

The time interval selector at the top of each tab allows you to filter the view for a predefined or custom time interval. Use the navigation buttons to move to the previous, next, or current time interval. When you select a time interval, the same interval is selected for all charts on the Metrics page.

Changefeed Status

Short NameCockroachDB Metric NameDescriptionUsage
Runningchangefeed.runningNumber of currently running changefeeds, including sinklessThis metric tracks the total number of all running changefeeds.
Pausedjobs.changefeed.currently\_pausedNumber of changefeed jobs currently considered PausedMonitor and alert on this metric to safeguard against an inadvertent operational error of leaving a changefeed job in a paused state for an extended period of time. Changefeed jobs should not be paused for a long time because the protected timestamp prevents garbage collection.
Failureschangefeed.failuresTotal number of changefeed jobs which have failedThis metric tracks the permanent changefeed job failures that the jobs system will not try to restart. Any increase in this counter should be investigated. An alert on this metric is recommended.

Retryable Errors

Short NameCockroachDB Metric NameDescriptionUsage
Errorschangefeed.error\_retriesTotal retryable errors encountered by all changefeedsThis metric tracks transient changefeed errors. Alert on “too many” errors, such as 50 retries in 15 minutes. For example, during a rolling upgrade this counter will increase because the changefeed jobs will restart following node restarts. There is an exponential backoff, up to 10 minutes. But if there is no rolling upgrade in process or other cluster maintenance, and the error rate is high, investigate the changefeed job.

Emitted Messages

Short NameCockroachDB Metric NameDescriptionUsage
Emitted messageschangefeed.emitted\_messagesMessages emitted by all feedsThis metric provides a useful context when assessing the state of changefeeds. This metric characterizes the rate of changes being streamed from the CockroachDB cluster.

Emitted Bytes

Short NameCockroachDB Metric NameDescriptionUsage
Emitted byteschangefeed.emitted\_bytesBytes emitted by all feedsThis metric provides a useful context when assessing the state of changefeeds. This metric characterizes the throughput bytes being streamed from the CockroachDB cluster.

Commit Latency

Short NameCockroachDB Metric NameDescriptionUsage
P99, P90changefeed.commit\_latencyEvent commit latency: a difference between event MVCC timestamp and the time it was acknowledged by the downstream sink. If the sink batches events, then the difference between the oldest event in the batch and acknowledgement is recorded; Excludes latency during backfillThis metric provides a useful context when assessing the state of changefeeds. This metric characterizes the end-to-end lag between a committed change and that change applied at the destination.

Oldest Protected Timestamp

Short NameCockroachDB Metric NameDescriptionUsage
Protected Timestamp Agejobs.changefeed.protected\_age\_secThe age of the oldest PTS record protected by changefeed jobsChangefeeds use protected timestamps to protect the data from being garbage collected. Ensure the protected timestamp age does not significantly exceed the GC TTL zone configuration. Alert on this metric if the protected timestamp age is greater than 3 times the GC TTL.

See also