The rocksdb metrics listed under stream-state-metrics are reported as zero for all metrics and all rocksdb instances. The metrics are present in JMX, but are always zero.
The streams state is configured with MetricsRecordingLevel at debug. I am able to see metrics with appropriate values in the stream-rocksdb-window-state-metrics, stream-record-cache-metrics, stream-task-metrics, and stream-processor-node-metrics.
Additionally, my DEBUG logs show the appropriate messages for recording events, i.e.
org.apache.kafka.streams.state.internals.metrics.RocksDBMetricsRecorder [RocksDB Metrics Recorder for agg-store] Recording metrics for store agg-store
It happens that all of my rocksdb instances are windowed stores, not key value stores, so I haven't been able to check if this issue is unique to windowed stores.