Page last updated:
New Relic collects analytics about application and client-side performance.
There are two ways to configure New Relic for the PHP buildpack.
With a CF service
Bind a NewRelic service to the app. The buildpack will automatically detect and set up NewRelic.
This should work as long as the VCAP_SERVICES environment variable contains a service called
newrelic. That service has a key called
credentials and that, in turn, has a key called
WARNING: This will not work with user provided services.
With a License Key
If you already have a New Relic account, use this method.
- Go to the New Relic website to find your license key.
- Set the value of the environment variable
NEWRELIC_LICENSEto your NewRelic license key, either through the manifest.yml file or with the
For more information, see https://github.com/cloudfoundry/php-buildpack#supported-software