mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: properly calculate global metrics in UpdateStats()
This commit is contained in:
parent
6afdcf8a20
commit
7d0743422b
1 changed files with 4 additions and 4 deletions
|
@ -367,11 +367,11 @@ func (pt *partition) UpdateMetrics(m *partitionMetrics) {
|
||||||
|
|
||||||
pt.partsLock.Unlock()
|
pt.partsLock.Unlock()
|
||||||
|
|
||||||
m.BigIndexBlocksCacheRequests += atomic.LoadUint64(&historicalBigIndexBlocksCacheRequests)
|
m.BigIndexBlocksCacheRequests = atomic.LoadUint64(&historicalBigIndexBlocksCacheRequests)
|
||||||
m.BigIndexBlocksCacheMisses += atomic.LoadUint64(&historicalBigIndexBlocksCacheMisses)
|
m.BigIndexBlocksCacheMisses = atomic.LoadUint64(&historicalBigIndexBlocksCacheMisses)
|
||||||
|
|
||||||
m.SmallIndexBlocksCacheRequests += atomic.LoadUint64(&historicalSmallIndexBlocksCacheRequests)
|
m.SmallIndexBlocksCacheRequests = atomic.LoadUint64(&historicalSmallIndexBlocksCacheRequests)
|
||||||
m.SmallIndexBlocksCacheMisses += atomic.LoadUint64(&historicalSmallIndexBlocksCacheMisses)
|
m.SmallIndexBlocksCacheMisses = atomic.LoadUint64(&historicalSmallIndexBlocksCacheMisses)
|
||||||
|
|
||||||
m.ActiveBigMerges += atomic.LoadUint64(&pt.activeBigMerges)
|
m.ActiveBigMerges += atomic.LoadUint64(&pt.activeBigMerges)
|
||||||
m.ActiveSmallMerges += atomic.LoadUint64(&pt.activeSmallMerges)
|
m.ActiveSmallMerges += atomic.LoadUint64(&pt.activeSmallMerges)
|
||||||
|
|
Loading…
Reference in a new issue