Module: NewRelicHaproxyAgent

Defined in:
lib/newrelic_haproxy_agent.rb

Defined Under Namespace

Classes: Agent

Constant Summary collapse

VERSION =
'1.0.1'

Class Method Summary collapse

Class Method Details

.runObject

Register and run the agent



96
97
98
99
100
101
102
103
104
105
# File 'lib/newrelic_haproxy_agent.rb', line 96

def self.run
  NewRelic::Plugin::Config.config.agents.keys.each do |agent|
    NewRelic::Plugin::Setup.install_agent agent, NewRelicHaproxyAgent
  end

  #
  # Launch the agent (never returns)
  #
  NewRelic::Plugin::Run.setup_and_run
end