
DDEV Newrelic
Overview
This add-on integrates Newrelic into your DDEV project.
Installation
ddev add-on get dmytriikaiun/ddev-newrelic
ddev restart
After installation, make sure to commit the .ddev
directory to version control.
Usage
- 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 select Ingest - Licence
as Key type.
- Configure DDEV with the credentials,
ddev config global --web-environment-add="NEWRELIC_LICENSE_KEY=<licence_key>, NEWRELIC_APPNAME=<appname>"
. The NEWRELIC_APPNAME
could 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 using ddev config --web-environment-add
. Or create any .env
file in .ddev
directory with the corresponding variables.
ddev start
ddev newrelic on
to enable, ddev newrelic off
to disable, ddev newrelic status
to see status
Credits
Contributed and maintained by @dmytriikaiun