need to add sample rate to stats

This commit is contained in:
Michael Baird 2017-05-30 16:19:18 -05:00
parent f0c3fdcdda
commit d43d83ad2f

View file

@ -172,7 +172,7 @@ func (f *Fragment) Open() error {
// Read last bit to determine max row.
pos := f.storage.Max()
f.maxRowID = pos / SliceWidth
f.stats.Gauge("rows", float64(f.maxRowID))
f.stats.Gauge("rows", float64(f.maxRowID), 1.0)
return nil
}(); err != nil {
@ -420,7 +420,7 @@ func (f *Fragment) setBit(rowID, columnID uint64) (changed bool, err error) {
// Update row count if they have increased.
if rowID > f.maxRowID {
f.maxRowID = rowID
f.stats.Gauge("rows", float64(f.maxRowID))
f.stats.Gauge("rows", float64(f.maxRowID), 1.0)
}
return changed, nil