Skip to content

Commit

Permalink
Merge pull request #2 from suhailpatel/fix-histogram-value-bug
Browse files Browse the repository at this point in the history
Fix bug in extracting histograms where the element shouldn't be in a Value subkey
  • Loading branch information
suhailpatel authored Oct 30, 2019
2 parents ec4ea90 + db8df05 commit 3f47804
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jolokia/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,17 @@ func (c *jolokiaClient) TableStats(table Table) (TableStats, error) {
case "LiveSSTableCount":
stats.LiveSSTables = Gauge(val.Get("Value").GetInt64())
case "SSTablesPerReadHistogram":
stats.SSTablesPerRead = parseHistogram(val.Get("Value"))
stats.SSTablesPerRead = parseHistogram(val)
case "MaxPartitionSize":
stats.MaxPartitionSize = BytesGauge(val.Get("Value").GetInt64())
case "MeanPartitionSize":
stats.MeanPartitionSize = BytesGauge(val.Get("Value").GetInt64())
case "BloomFilterFalseRatio":
stats.BloomFilterFalseRatio = FloatGauge(val.Get("Value").GetInt64())
case "TombstoneScannedHistogram":
stats.TombstonesScanned = parseHistogram(val.Get("Value"))
stats.TombstonesScanned = parseHistogram(val)
case "LiveCellsScannedHistogram":
stats.LiveCellsScanned = parseHistogram(val.Get("Value"))
stats.LiveCellsScanned = parseHistogram(val)
case "KeyCacheHitRate":
stats.KeyCacheHitRate = FloatGauge(val.Get("Value").GetInt64())
case "PercentRepaired":
Expand Down

0 comments on commit 3f47804

Please sign in to comment.