Module: Deployinator::Helpers::GraphiteHelpers

Defined in:
helpers/graphite.rb

Instance Method Summary collapse

Instance Method Details

#graphite_plot(logString) ⇒ Object


5
6
7
8
9
10
11
# File 'helpers/graphite.rb', line 5

def graphite_plot(logString)
  if Deployinator.graphite_host
    s = TCPSocket.new(Deployinator.graphite_host,Deployinator.graphite_port || 2003)
    s.write "#{logString} #{Time.now.to_i}\n"
    s.close
  end
end