conduktor.io ↗

KIP-1250 — Add metric to track size of in-memory state stores

Accepted Kafka 4.3 StreamsMetrics

Adds a num-keys metric to in-memory Kafka Streams state stores (InMemoryKeyValueStore, InMemorySessionStore, etc.) tracking the current number of entries. RocksDB stores expose an estimated key count metric, but in-memory stores emit no equivalent, leaving operators without visibility into memory pressure from state store growth.

Details

AuthorEvan Zhou
StatusAccepted
Kafka Version4.3
JIRAKAFKA-17895
WikiView on Apache Wiki
Created2025-12-03
Last Modified2026-02-13
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.