This is an automated email from the ASF dual-hosted git repository.

bbejeck pushed a commit to branch markdown
in repository https://gitbox.apache.org/repos/asf/kafka-site.git


The following commit(s) were added to refs/heads/markdown by this push:
     new c2cad6bc2c add documentation for the num-keys metric introduced by 
KIP-1250 (#867)
c2cad6bc2c is described below

commit c2cad6bc2c9fb8e89e7b5aab34db76a6217edb96
Author: Evan Zhou <[email protected]>
AuthorDate: Wed May 27 10:13:23 2026 -0500

    add documentation for the num-keys metric introduced by KIP-1250 (#867)
---
 content/en/43/operations/monitoring.md | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/content/en/43/operations/monitoring.md 
b/content/en/43/operations/monitoring.md
index c7f22f3b16..324a631715 100644
--- a/content/en/43/operations/monitoring.md
+++ b/content/en/43/operations/monitoring.md
@@ -5081,7 +5081,7 @@ 
kafka.streams:type=stream-topic-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),pr
 
 ### State Store Metrics
 
-All the following metrics have a recording level of `debug`, except for the 
`record-e2e-latency-*` metrics which have a recording level `trace` and 
`num-open-iterators` which has recording level `info`. Note that the 
`store-scope` value is specified in `StoreSupplier#metricsScope()` for user's 
customized state stores; for built-in state stores, currently we have: 
+All the following metrics have a recording level of `debug`, except for the 
`record-e2e-latency-*` metrics which have a recording level `trace` and 
`num-open-iterators` and `num-keys` which have recording level `info`. Note 
that the `store-scope` value is specified in `StoreSupplier#metricsScope()` for 
user's customized state stores; for built-in state stores, currently we have:
 
   * `in-memory-state`
   * `in-memory-lru-state`
@@ -5642,6 +5642,19 @@ 
kafka.streams:type=stream-state-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),[s
 <tr>  
 <td>
 
+num-keys
+</td>  
+<td>
+
+The current number of keys in the in-memory state store. Only reported for 
in-memory state stores; not available for RocksDB-backed stores.
+</td>  
+<td>
+
+kafka.streams:type=stream-state-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),[store-scope]-id=([-.\w]+)
+</td> </tr>  
+<tr>  
+<td>
+
 iterator-duration-avg
 </td>  
 <td>

Reply via email to