Open
Description
The main task of MetricManager is to manage metric name of a sample, it will:
- Calculate the id for metric name, using seahash. Since there is no field concept in prometheus, we could use a hard-coded one, such as
value
, and its type is f64. - Persist new name to storage. For existing metric name, we should avoid this step, since it will involve IO operation.
- In order to support 2, we need to add a cache, and when server start up, we load all existing metric name into cache.
Activity