Oguz Kilcan 1b7fa208d4
fix: correct SQLite size metrics to include indexes and freelist
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)
2026-03-18 18:00:24 +03:00
..