bin/instrument_server in instrumental_tools-0.2.0 vs bin/instrument_server in instrumental_tools-0.2.1
- old
+ new
@@ -265,16 +265,16 @@
def self.run(options)
agent = Instrumental::Agent.new(options[:api_key], :collector => [options[:collector], options[:port]].compact.join(':'))
puts "Collecting stats under the hostname: #{options[:hostname]}"
loop do
+ sleep 10
inspector = SystemInspector.new
inspector.load_all
inspector.gauges.each do |stat, value|
agent.gauge("#{options[:hostname]}.#{stat}", value)
end
# agent.increment("#{host}.#{stat}", delta)
- sleep 10
end
end
def initialize(options={})
@run_options = options.delete(:run_options) || {}