polarsignals / frostdb

❄️ Coolest database around 🧊 Embeddable column database written in Go.
Apache License 2.0
1.27k stars 65 forks source link

*: move all metrics registration to the store level #905

Closed asubiotto closed 1 month ago

asubiotto commented 1 month ago

At component instantiation time (e.g. db, wal, table), existing metrics are provided to the components with the correct variable label set. This moves the metric registration lifecycle to the store level and avoids duplicate registration panics when e.g. reopening a closed db.

asubiotto commented 1 month ago

Tested on local cloud and prometheus and verified some metrics are exported with the correct names and labels.