You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new histogram metric `changefeed.sink_backpressure_nanos` that
measures time spent waiting for quota when emitting to the sink.
This provides visibility into downstream sink backpressure affecting
changefeed performance.
The metric is recorded per changefeed scope in batching_sink when
AdmitRequest returns ErrNotEnoughQuota, measuring the time from when
we start waiting for quota until it becomes available.
Includes unit test that exercises the metric under induced backpressure.
Fixes: #148417
Release note (enterprise change): Added changefeed.sink_backpressure_nanos
metric to track time spent waiting for quota when emitting to the sink.
Copy file name to clipboardExpand all lines: docs/generated/metrics/metrics.yaml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1456,6 +1456,14 @@ layers:
1456
1456
unit: NANOSECONDS
1457
1457
aggregation: AVG
1458
1458
derivative: NON_NEGATIVE_DERIVATIVE
1459
+
- name: changefeed.sink_backpressure_nanos
1460
+
exported_name: changefeed_sink_backpressure_nanos
1461
+
description: Time spent waiting for quota when emitting to the sink (back-pressure). Only populated for sinks using the batching_sink wrapper. As of writing, this includes Kafka (v2), Pub/Sub (v2), and Webhook (v2).
1462
+
y_axis_label: Nanoseconds
1463
+
type: HISTOGRAM
1464
+
unit: NANOSECONDS
1465
+
aggregation: AVG
1466
+
derivative: NONE
1459
1467
- name: changefeed.sink_batch_hist_nanos
1460
1468
exported_name: changefeed_sink_batch_hist_nanos
1461
1469
description: Time spent batched in the sink buffer before being flushed and acknowledged
0 commit comments