New Relic
NewRelic.com is an online Application Performance Monitoring APM solution.
b2evolution is instrumented to send custom metrics to New Relic when New Relic is installed.
Installation
Refer to the NewRelic.com signup procedure to learn how to install newRelic on your server and start monitoring PHP on your server.
Once this is done, you may want to log your data to a specific application within your New Relic account. To do this, we suggest we add code liek this to your _local.php file:
if( extension_loaded('newrelic') )
{
newrelic_set_appname( 'b2evo' );
}
Replace 'b2evo'
with the name of your app in New Relic. You can also log to multiple applications, for example: 'b2evo;server1'
What is instrumented?
In addition to the default metrics monitored by New Relic, b2evolution 5.0.7+ will make use of the following New Relic features:
Named Transactions
Rather than showing you that all calls to your site go through index.php
, b2evolution will report specific transaction names of the type blogb:single
which means the user was looking at a specific item in the collection with the short-name blogb
.
For a deeper look, search the code for apm_name_transaction()
calls.
Custom Metrics
b2evolution will report its main internal Timers to New Relic, so you can get a statical view of them rather than the samples you get in debug mode.
For a deeper look, search the code for apm_log_custom_metric()
calls.