#27662·influxdb

Expose TSI TagValueSeriesIDCache statistics as Prometheus metrics (2.x)

Author: devanbenzCreated Sep 22, 2026Updated Sep 22, 2026
Labelsarea/tsikind/featurearea/2.xteam/edge

#27660 ports the adaptive TagValueSeriesIDCache to main-2.x but keeps the 1.x Statistics() API (models.Statistic), which nothing in 2.x scrapes. See https://github.com/influxdata/influxdb/pull/27660#issuecomment-5768241193.

Expose the cache stats (hits, misses, evictions, shrinkEvictions, size, capacity) as Prometheus metrics, following the tsm1 pattern, and wire them into storage.Engine.PrometheusCollectors().

Refs: #27660, #27628