gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

Widgets should raise error if incorrect type of gauge passed #38

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by ineu Sunday Feb 17, 2013 at 22:23 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/122


I've tried to add numbers widget to simple gauge, but it always showed zeroes. Finally I've found out that my gauge was three_dimensional. As soon as i've changed it to simple gauge and flushed redis db, numbers widget started showing correct data. Such behavior is not described in documentation and I don't know if it is bug in numbers widget or documenation flaw, but if it is proper behavior, widget should raise error if it receives incorrect type of gauge and not silently ignore it.

bf4 commented 10 years ago

Comment by JangoSteve Sunday Aug 04, 2013 at 00:42 GMT


I had the same issue when I was trying to send a custom :_timestamp value to a widget. Turns out I was sending the value of Time.now instead of Time.now.to_i (which Fnordmetric apparently expects). Rather than giving me an error though, it simply wasn't logging the events. This was pretty frustrating and took much longer to debug than it should have.