lib/riemann/babbler/plugin.rb in riemann-babbler-0.6.5 vs lib/riemann/babbler/plugin.rb in riemann-babbler-0.6.6

- old
+ new

@@ -49,9 +49,10 @@ report_with_diff(event) and return if event[:as_diff] # если нет event[:state] то попробовать его добавить unless event[:state] event[:state] = state(event[:metric]) unless plugin.states.critical.nil? end + event[:metric] = event[:metric].round(2) if event[:metric].kind_of? Float event[:tags] = options.riemann.tags unless options.riemann.tags.nil? event[:host] = hostname logger.debug "Report status: #{event.inspect}" riemann << event end