-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: move all metrics registration to the store level (#905)
* *: add test for duplicate metrics registration This test verifies that a db and table can be reopened after being dropped without causing a panic. * *: add custom collector that exports pull-based db and table metrics These were previously structured as GaugeFuncs registered on db and table creation. These can create a duplicate metrics registration when a db or table is dropped and recreated, so this commit moves exporting these metrics to the store level. * *: move all metrics registration to the store level 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.
- Loading branch information
Showing
11 changed files
with
540 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.