Last updated 11th May 2021
Get your license key
Sign up at https://newrelic.com and get your license key.
Add your license key
Add your New Relic license key as an environment level variable:
webpaas variable:create --level environment --environment '<your-environment>' --visible-build false --inheritable false php:newrelic.license --value '<your-new-relic-license-key>'
Give your application a name
Add a new environment level variable to give your application a recognizable name:
webpaas variable:create --level environment --environment '<your-environment>' --visible-build false --inheritable false php:newrelic.appname --value '<your-application-name>'
Repeat these two steps for every environment you want to monitor, making sure you give them different application names, matching the ones you entered in the New Relic interface.
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 Web PaaS 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:
webpaas 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'
Did you find this guide useful?
Please feel free to give any suggestions in order to improve this documentation.
Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.
Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.
Thank you. Your feedback has been received.