Skip to main content
Version: 7.x

Newrelic Recipe

require 'contrib/newrelic.php';

Source

Configuration

  • newrelic_app_id – newrelic's app id
  • newrelic_api_key – newrelic's api key
  • newrelic_description – message to send

Usage

Since you should only notify New Relic of a successful deployment, the newrelic:notify task should be executed right at the end.

after('deploy', 'newrelic:notify');

Configuration

newrelic_app_id

Source

Required

Throws exception if not set.

newrelic_description

Source

Default value
return runLocally('git log -n 1 --format="%an: %s" | tr \'"\' "\'"');

newrelic_revision

Source

Default value
return runLocally('git log -n 1 --format="%h"');

Tasks

newrelic:notify

Source

Notifies New Relic of deployment.