KIP-761 — Add Total Blocked Time Metric to Streams
Accepted Kafka 3.1 StreamsMetrics
Introduces a new `blocked-time-total` metric in Kafka Streams that accumulates the total wall-clock time a stream thread spends blocked waiting on Kafka (poll, commit, flush) rather than processing records. Existing metrics like `poll-ratio` and `processing-ratio` are instantaneous ratios from a single poll loop iteration and are too coarse-grained to identify systemic blocking bottlenecks.
Details
| Author | Rohan Desai |
| Status | Accepted |
| Kafka Version | 3.1 |
| JIRA | KAFKA-13229 |
| Wiki | View on Apache Wiki |
| Created | 2021-07-07 |
| Last Modified | 2021-09-24 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.