Skip to content

Commit

Permalink
Merge pull request #5 from suhailpatel/fix-float-gauges
Browse files Browse the repository at this point in the history
Fix Table Float Gauges which should be representing floats
  • Loading branch information
suhailpatel authored Mar 8, 2020
2 parents 23e1a83 + 9166cda commit f2a93b2
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 @@ -151,15 +151,15 @@ func (c *jolokiaClient) TableStats(table Table) (TableStats, error) {
case "MeanPartitionSize":
stats.MeanPartitionSize = BytesGauge(val.Get("Value").GetInt64())
case "BloomFilterFalseRatio":
stats.BloomFilterFalseRatio = FloatGauge(val.Get("Value").GetInt64())
stats.BloomFilterFalseRatio = FloatGauge(val.Get("Value").GetFloat64())
case "TombstoneScannedHistogram":
stats.TombstonesScanned = parseHistogram(val)
case "LiveCellsScannedHistogram":
stats.LiveCellsScanned = parseHistogram(val)
case "KeyCacheHitRate":
stats.KeyCacheHitRate = FloatGauge(val.Get("Value").GetInt64())
stats.KeyCacheHitRate = FloatGauge(val.Get("Value").GetFloat64())
case "PercentRepaired":
stats.PercentRepaired = FloatGauge(val.Get("Value").GetInt64())
stats.PercentRepaired = FloatGauge(val.Get("Value").GetFloat64())
case "SpeculativeRetries":
stats.SpeculativeRetries = Counter(val.Get("Count").GetInt64())
case "SpeculativeFailedRetries":
Expand Down

0 comments on commit f2a93b2

Please sign in to comment.