mirror of
https://github.com/siderolabs/omni.git
synced 2026-03-31 05:32:00 +02:00
Table size queries (`omni_sqlite_subsystem_size_bytes`) filtered by dbstat name, missing index sizes. Join with sqlite_master to attribute index pages to their parent table. DB size (`omni_sqlite_db_size_bytes`) used dbstat sum which excludes freelist pages. Use page_count * page_size to match actual file size. Add `omni_sqlite_db_freelist_size_bytes` metric to track wasted space. Signed-off-by: Oguz Kilcan <oguz.kilcan@siderolabs.com> (cherry picked from commit e85ab384c343ca26987ce65ca1f9f4a9ee7d2361)