KIP-703 — Add a metric for reporting idle connections closed
Discussion MetricsBroker
Introduces a new JMX metric `connection-close-total` (tagged by `close-reason=idle`) on the `Selector` to count the number of connections closed due to exceeding `connection.max.idle.ms`. Currently, idle connection closures are only visible at TRACE log level, making it impossible to monitor this behavior from standard metrics/alerting infrastructure.
Details
| Author | Pere Urbon |
| Status | Discussion |
| JIRA | KAFKA-12166 |
| Wiki | View on Apache Wiki |
| Created | 2021-01-08 |
| Last Modified | 2021-01-08 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.