[Port to 2.x]: feat: Add DefaultPlanner stats to Engine stats (#27523)
Author: devanbenzCreated Sep 16, 2026Updated Sep 16, 2026
Labelsarea/2.x
Port master-1.x commit https://github.com/influxdata/influxdb/commit/f7b4c473be to main-2.x.
Adds planner counters (FindGenerations, Plan, PlanLevel, PlanOptimize) to the engine statistics. 2.x uses prometheus metrics instead of Statistics(); add the counters to the existing compaction metrics in tsdb/engine/tsm1/engine.go.
Source: influxdata/influxdb