Skip to content

Commit

Permalink
metrics: fix the residual label (#4824) (#4831)
Browse files Browse the repository at this point in the history
ref #4824, close #4825

Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: Ryan Leung <[email protected]>
  • Loading branch information
ti-chi-bot and rleungx authored May 27, 2022
1 parent b99630d commit b73b12d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/statistics/store_collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func (s *storeStatistics) Observe(store *core.StoreInfo, stats *StoresStats) {
}

func (s *storeStatistics) Collect() {
placementStatusGauge.Reset()

metrics := make(map[string]float64)
metrics["store_up_count"] = float64(s.Up)
metrics["store_disconnected_count"] = float64(s.Disconnect)
Expand Down

0 comments on commit b73b12d

Please sign in to comment.