New Relic

Edit on GitHub

New Relic Monitoring

Spryker enables integration with New Relic for performance monitoring. New Relic contains a set of powerful features that help you monitor the performance and health of your application. To be able to use New Relic, first, you need to get an account. Next, you will need to install the New Relic PHP extension in your virtual machine by following the steps described in New Relic Setup instructions.

General Information

The spryker-eco/new-relic module provides a NewRelicMonitoringExtensionPlugin to send monitoring information to the New Relic service.

Installation

To be able to use the \SprykerEco\Service\NewRelic\Plugin\NewRelicMonitoringExtensionPlugin plugin within the Monitoring module, install the NewRelic Module:

composer require spryker-eco/new-relic

Request Logging

Every request is automatically logged by New Relic. The name of the requests will be the name of the used route for Yves and the [module]/[controller]/[action] for Zed. Also, URL request and the host are stored as custom parameters for each request.

To enable the New Relic monitoring extension, add it to the MonitoringDependencyProvider in your project:

 '12345',
    'zed_de'    => '12346',
    'yves_us'   => '12347',
    'zed_us'    => '12348',
];

Therefore, it will be possible to use the record deployment functionality built-in in the console commands, as follows:

$ vendor/bin/console newrelic:record-deployment