Skip to content

Commit

Permalink
Merge branch 'master' into refactor_tso
Browse files Browse the repository at this point in the history
  • Loading branch information
JmPotato authored Aug 20, 2020
2 parents a103872 + 72a7ee3 commit 4b3703f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/statistics/store_collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ func (s *storeStatistics) Observe(store *core.StoreInfo, stats *StoresStats) {

// Store flows.
storeFlowStats := stats.GetRollingStoreStats(store.GetID())
if storeFlowStats == nil {
return
}

storeWriteRateByte, storeReadRateByte := storeFlowStats.GetBytesRate()
storeStatusGauge.WithLabelValues(storeAddress, id, "store_write_rate_bytes").Set(storeWriteRateByte)
storeStatusGauge.WithLabelValues(storeAddress, id, "store_read_rate_bytes").Set(storeReadRateByte)
Expand Down

0 comments on commit 4b3703f

Please sign in to comment.