!!! 5 - nav_haml = Haml::Engine.new(File.read(File.dirname(__FILE__) + '/_nav.haml')) - nav = nav_haml.render - css_haml = Haml::Engine.new(File.read(File.dirname(__FILE__) + '/_css.haml')) - css = css_haml.render %html %head %title Flapjack - Self Stats = css %body %div#wrapper = nav %h1 Flapjack Self Status %h4 Events queued: = @events_queued %h4 Number of failing services: = @count %p Events processed (all time): #{@event_counters['all']} (ok: #{@event_counters['ok']}, failure: #{@event_counters['failure']}, action: #{@event_counters['action']}) %p Events processed (this instance): #{@event_counters_instance['all']} (ok: #{@event_counters_instance['ok']}, failure: #{@event_counters_instance['failure']}, action: #{@event_counters_instance['action']}) %p Average rate (this instance): #{@event_rate_all} events per second %p Total keys in redis: #{@keys.length} %p Uptime: #{@uptime_string} %p Boot time: #{@boot_time} %p Current time: #{Time.now} %p Executive Instances: #{@executive_instances.inspect}