Create Magento App
Create ScandiPWA AppScandiPWA DocsGitHub
v2
v2
  • Create Magento App
  • Getting started
    • Getting Started
    • Prerequisites
      • Linux requirements
      • MacOS requirements
        • Apple Silicon
      • Windows requirements
    • Available commands
      • Start the application
      • Stop the application
      • Check application status
      • Enter application CLI
      • Explore application logs
      • Execute commands in Docker containers
      • Link a theme
      • Import database dump
      • ⚠️ Uninstall a project
    • Folder structure
    • Updating to New Releases
      • Testing Alpha Releases
    • Configuration File
      • System Configuration File
    • Supported Magento versions
    • How does it work?
    • Limitations
    • What Is New in Version 2
  • Usage guide
    • Using console commands
    • Accessing Docker containers
    • Linking a Scandi Theme
    • Enabling XDebug
    • Enabling SSL
    • Configuring PHP
    • Configuring Multi-Store
    • Configuring NewRelic
    • Access on the local network
    • Using custom domain
    • Using Enterprise Edition
    • Using OpenSearch
    • Importing database
      • Importing remote database
    • Converting legacy Docker setup to CMA
    • Improve Performance
  • Container images
    • PHP Images
      • PHP 8.4
      • PHP 8.3
      • PHP 8.2
      • PHP 8.1
      • PHP 7.4
      • PHP 7.3
      • PHP 7.2
    • ElasticSearch Images
      • ElasticSearch 6.8
  • Scripts Extensions
    • PHP Extensions
      • PHP Extensions Package
      • (deprecated) ionCube Extension
  • Troubleshooting
    • Common Issues
    • CMA Debugging
    • Uninstall CMA
Powered by GitBook
On this page
  • 1. Retrieve your NR license key.
  • 2. Run the following command
  • 3. Add the following configuration to your cma.js
  • 4. Run the start command without the -s option

Was this helpful?

  1. Usage guide

Configuring NewRelic

PreviousConfiguring Multi-StoreNextAccess on the local network

Last updated 1 year ago

Was this helpful?

Available only on Linux. WSL is not supported.

NewRelic will allow monitoring performance during development, hopefully allowing to spot performance regressions before going to prod.

You will need an infrastructure container running for the NewRelic daemon.

1. Retrieve your NR license key.

2. Run the following command

It will spin up a NewRelic infra container (Note that it will run in ):

docker run \
    -d \
    --name newrelic-infra \
    --network=host \
    --cap-add=SYS_PTRACE \
    --privileged \
    --pid=host \
    -v "/:/host:ro" \
    -v "/var/run/docker.sock:/var/run/docker.sock" \
    -e NRIA_LICENSE_KEY=<LICENSE_KEY> \
    newrelic/infrastructure:latest

Replace <LICENSE_KEY> with your license key

3. Add the following configuration to your cma.js

module.exports = {
	... // other configurations
    configuration: {
        newRelic: {
            enabled: true,
            licenseKey: '<LICENSE_KEY>'
        }
    }
};

4. Run the start command without the -s option

https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/
privileged mode