Skip to content

Commit

Permalink
Merge pull request #105 from nats-io/fix-reserved-metrics
Browse files Browse the repository at this point in the history
Fix metrics from reserved memory and store
  • Loading branch information
wallyqs authored Sep 19, 2022
2 parents 8a94a2d + 5f23764 commit 80104b6
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 80104b6

Please sign in to comment.