Displaying 1 result from an estimated 1 matches for "perform_action_with_newrelic_trace".
2012 Aug 07
0
hooking NewRelic into Puppet agent
...ruby1.8
> require ''rubygems''
> require ''newrelic_rpm''
> require ''new_relic/agent/instrumentation/controller_instrumentation''
> NewRelic::Agent.manual_start
> include NewRelic::Agent::Instrumentation::ControllerInstrumentation
> perform_action_with_newrelic_trace(:name => "PuppetAgentRun:
> #{`hostname`}", :category => :task) do
> require ''puppet/util/command_line''
> Puppet::Util::CommandLine.new.execute
> end
This (and a newrelic.yml) gets me some basic information in NewRelic''s
Background Tas...