Skip to content

Commit

Permalink
Fix metrics from reserved memory and store
Browse files Browse the repository at this point in the history
They were swapped :/
  • Loading branch information
wallyqs authored Sep 17, 2022
1 parent 8a94a2d commit 5f23764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions surveyor/collector_statz.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,8 @@ func (sc *StatzCollector) pollAccountInfo() error {

sts.jetstreamMemoryUsed = float64(jsInfo.Memory)
sts.jetstreamStorageUsed = float64(jsInfo.Store)
sts.jetstreamMemoryReserved = float64(jsInfo.ReservedStore)
sts.jetstreamStorageReserved = float64(jsInfo.ReservedMemory)
sts.jetstreamMemoryReserved = float64(jsInfo.ReservedMemory)
sts.jetstreamStorageReserved = float64(jsInfo.ReservedStore)

sts.jetstreamStreamCount = float64(len(jsInfo.Streams))
for _, stream := range jsInfo.Streams {
Expand Down

0 comments on commit 5f23764

Please sign in to comment.