This add-on integrates New Relic into your DDEV project.
ddev add-on get tbkot/ddev-newrelic
ddev restartAfter installation, make sure to commit the .ddev directory to version control.
- Create a New Relic account. A free account is limited in data ingestion; see New Relic pricing.
- From the New Relic's control panel, get the Licence key from your Account -> API Keys.
Use the "Create a key" button and selectIngest - Licenceas Key type. - Configure DDEV with the credentials,
ddev config global --web-environment-add="NEWRELIC_LICENSE_KEY=<licence_key>, NEWRELIC_APPNAME=<appname>". TheNEWRELIC_APPNAMEcould be any alphanumeric string; New Relic will create a corresponding entity that can be found in the UI.
It’s easiest to do this globally, but you can do the same thing at the project level usingddev config --web-environment-add. Or create any.envfile in.ddevdirectory with the corresponding variables. ddev startddev newrelic onto enable,ddev newrelic offto disable,ddev newrelic statusto see status
Contributed and maintained by @tbkot