New Relic

Platform.sh supports New Relic APM.

Get Started

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 project:variable:set --no-visible-build php:newrelic.license <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.

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'

results matching ""

    No results matching ""