New Relic

Platform.sh supports New Relic APM.

On a Grid plan

1. Get your license key

Sign up at https://newrelic.com and get your license key.

2. Add your license key

Add your New Relic license key as a project level variable:

platform variable:create --visible-build false php:newrelic.license --value '<your-new-relic-license-key>'

3. Enable the New Relic extension

Enable the New Relic extension in your .platform.app.yaml as follows:

runtime:
    extensions:
        - newrelic

Push the changes to your Platform.sh environment to enable New Relic as follows:

git add .platform.app.yaml
git commit -m "Enable New Relic."
git push

That's it! You need to wait a little bit for your New Relic dashboard to be generated.

On a Dedicated cluster

Sign up at https://newrelic.com and get your license key. Then open a support ticket and let us know what your key is. Our support team will install it and let you know when it is complete.

Troubleshoot

Additionally, you can check that your application is properly connected to New Relic by looking at the /var/log/app.log file:

platform log app

2017/04/19 14:00:16.706450 (93) Info: Reporting to: https://rpm.newrelic.com/accounts/xxx/applications/xxx
2017/04/19 14:00:16.706668 (93) Info: app 'xxx-master-xxx.app' connected with run id 'xxx'