Hybrid persistent_term + ETS series ID lookup and registration.
The hot read path uses persistent_term (zero-copy shared Map). New series spill into an ETS overflow table and are periodically batch-merged into persistent_term to avoid literal-heap churn.
Steady state: 100% persistent_term hits, ETS overflow is empty.
Summary
Functions
Returns a specification to start this module under a supervisor.
Return the number of registered series.
Flush pending series registrations to SQLite synchronously.
Get or create a series ID for the given metric name and labels. Fast path: persistent_term Map lookup (zero-copy). Warm path: ETS overflow lookup (during warm-up). Slow path: GenServer → SQLite → ETS overflow → deferred publish.
Lookup series metadata by ID.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Return the number of registered series.
Flush pending series registrations to SQLite synchronously.
Get or create a series ID for the given metric name and labels. Fast path: persistent_term Map lookup (zero-copy). Warm path: ETS overflow lookup (during warm-up). Slow path: GenServer → SQLite → ETS overflow → deferred publish.
Lookup series metadata by ID.