circonus-labs / reconnoiter

Large-scale Monitoring and Trend Analysis System
Other
245 stars 62 forks source link

Fix scaling bug for numerics with scale < 1 and also add default case to catch unknown units types #858

Closed vasuraman11 closed 1 year ago

vasuraman11 commented 1 year ago

Found a bug in the code processing incoming integer metrics with a scale < 1, where it would scale the wrong variable and then pass the unscaled value across to be stored. Also added a log message to a new default case so that we could see cases where the units is not recognized.