v.24.6Improvement

Add Metrics for Directory Management and In-Memory Map Entries in Plain Rewritable Metadata Storage

Add metrics to track the number of directories created and removed by the plain_rewritable metadata storage, and the number of entries in the local-to-remote in-memory map. #64175 (Julia Kartseva).
Added metrics to monitor the number of directories created and removed by the plain_rewritable metadata storage, as well as the count of entries in the local-to-remote in-memory map.

Why it matters

This feature provides enhanced observability into the internal operations of the plain_rewritable metadata storage by tracking directory management and in-memory map size. It helps users and administrators understand storage behavior and diagnose potential issues related to metadata storage management.

How to use it

The metrics are automatically collected and exposed when using the plain_rewritable metadata storage. Users can monitor these metrics through the standard ClickHouse metrics interfaces without additional configuration.