cadonna commented on a change in pull request #9895: URL: https://github.com/apache/kafka/pull/9895#discussion_r559546751
########## File path: docs/ops.html ########## @@ -2133,6 +2142,136 @@ <h5 class="anchor-heading"><a id="kafka_streams_rocksdb_monitoring" class="ancho </tbody> </table> + <strong>RocksDB Properties-based Metrics:</strong> + All of the following properties-based metrics have a recording level of <code>info</code> and are recorded when the + metrics are accessed. + If a state store consists of multiple RocksDB instances, as is the case for aggregations over time and session windows, + each metric reports the sum over all the RocksDB instances of the state store, except for the block cache metrics + <code>block-cache-*</code>. The block cache metrics report the sum over all RocksDB instances if each instance uses its + own block cache, and they report the recorded value from only one instance if a single block cache is shared + among all instances. + + <table class="data-table"> + <tbody> + <tr> + <th>Metric/Attribute name</th> + <th>Description</th> + <th>Mbean name</th> + </tr> + <tr> + <td>num-immutable-mem-table</td> + <td>The number of immutable memtables that have not yet been flushed.</td> + <td>kafka.streams:type=stream-state-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),[store-scope]-id=([-.\w]+)</td> + </tr> + <tr> + <td>cur-size-active-mem-table</td> + <td>The approximate size of the active memtable in bytes.</td> + <td>kafka.streams:type=stream-state-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),[store-scope]-id=([-.\w]+)</td> + </tr> + <tr> + <td>cur-size-all-mem-tables</td> + <td>The approximate size of active and unflushed immutable memtables in bytes.</td> + <td>kafka.streams:type=stream-state-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),[store-scope]-id=([-.\w]+)</td> + </tr> + <tr> + <td>size-all-mem-tables</td> + <td>The approximate size of active, unflushed immutable, and pinned immutable memtables in bytes.</td> + <td>kafka.streams:type=stream-state-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),[store-scope]-id=([-.\w]+)</td> + </tr> + <tr> + <td>num-entries-active-mem-table</td> + <td>The number of entries in the active memtable.</td> + <td>kafka.streams:type=stream-state-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),[store-scope]-id=([-.\w]+)</td> + </tr> + <tr> + <td>num-entries-imm-mem-tables</td> + <td>The number of entries in the unflushed immutable memtables.</td> + <td>kafka.streams:type=stream-state-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),[store-scope]-id=([-.\w]+)</td> + </tr> + <tr> + <td>num-deletes-active-mem-table</td> + <td>The number of delete entries in the active memtable.</td> + <td>kafka.streams:type=stream-state-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),[store-scope]-id=([-.\w]+)</td> + </tr> + <tr> + <td>num-deletes-imm-mem-tables</td> + <td>The number of delete entries in the unflushed immutable memtables.</td> + <td>kafka.streams:type=stream-state-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),[store-scope]-id=([-.\w]+)</td> + </tr> + <tr> + <td>mem-table-flush-pending</td> + <td>This metric reports 1 if a memtable flush is pending, otherwise it reports 0.</td> + <td>kafka.streams:type=stream-state-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),[store-scope]-id=([-.\w]+)</td> + </tr> + <tr> + <td>num-running-flushes</td> + <td>The number of currently running flushes.</td> + <td>kafka.streams:type=stream-state-metrics,thread-id=([-.\w]+),task-id=([-.\w]+),[store-scope]-id=([-.\w]+)</td> + </tr> + <tr> + <td>compaction-pending</td> + <td>This metric reports 1 if at least one compaction is pending, otherwise it reports 0.</td> Review comment: No, I do not know. I supposed that it only applies to one single RocksDB instance. I am wondering how RocksDB can share a thread pool between state stores that are started independently from each other. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org