PHP - Profiling Applications with New Relic

New Relic is an application profiling and monitoring service. To install the New Relic agent in a PHP application deployed with Dokku, just follow these steps.

  • Set the NEW_RELIC_LICENSE_KEY config variable via dokku config:set, the buildpack will automatically install and enable the New Relic extension.
  • If you need to customize New Relic's default configuration for PHP apps, you will need to add a local config file to your app's git repository and then set the NEW_RELIC_CONFIG_FILE config variable via dokku config:set. See https://docs.newrelic.com/docs/agents/php-agent/advanced-installation/php-agent-heroku for details.