Improve metrics for Auto Compaction (#12413)