Skip to content

Commit

Permalink
kvserver: hook up TenantStoreMetrics to registry
Browse files Browse the repository at this point in the history
TODO needs some sort of test, perhaps.

Closes #99228

Epic: none
Release note: None
  • Loading branch information
tbg committed Mar 23, 2023
1 parent 4913247 commit 50c58b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/kv/kvserver/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -2308,9 +2308,11 @@ func newStoreMetrics(histogramWindow time.Duration) *StoreMetrics {
rdbLevelSize := storageLevelGaugeSlice(metaRdbLevelSize)
rdbLevelScore := storageLevelGaugeFloat64Slice(metaRdbLevelScores)

tsm := newTenantsStorageMetrics()
storeRegistry.AddMetricStruct(tsm)
sm := &StoreMetrics{
registry: storeRegistry,
TenantsStorageMetrics: newTenantsStorageMetrics(),
TenantsStorageMetrics: tsm,
LoadSplitterMetrics: &split.LoadSplitterMetrics{
PopularKeyCount: metric.NewCounter(metaPopularKeyCount),
NoSplitKeyCount: metric.NewCounter(metaNoSplitKeyCount),
Expand Down

0 comments on commit 50c58b0

Please sign in to comment.