New Relic

New Relic is a great service for in-depth monitoring of your instances, both at the operating system and application level.

Server Monitoring

New Relic's free server monitoring provides you with in-depth monitoring of CPU usage, load average, physical memory, disk I/O, network I/O and processes.

Installation

To enable this for your app, simply pass in your New Relic license key when fusing an image:

> boxfuse fuse -newrelic.licensekey=0123456789abcdef0123456789abcdef01234567

Boxfuse will then automatically install the New Relic Servers Linux x64 agent and configure it to start reporting to your New Relic account.

Servers Agent version

By default Boxfuse installs the latest version of the New Relic Servers Linux x64 agent. If you want to switch an older version, you can do so using the -components.newrelic-sysmond configuration setting:

> boxfuse run my-app-1.0.jar -components.newrelic-sysmond=2.3.0.132

To find out which New Relic Servers Linux x64 agent versions are available from the Boxfuse Inventory you can simply issue:

> boxfuse inventory newrelic-sysmond

Application Monitoring

To provide you even deeper insights, New Relic also comes with monitoring at the application level with detailed analysis of transactions, throughput, database queries and much more.

Installation (JVM apps only)

For JVM apps, when supplying your New Relic license key as described above, Boxfuse will also automatically install and configure the New Relic Java agent.

The application will then begin reporting to New Relic as myapp (myenv). In case of an application named hello deployed in the prod environment this would then be hello (prod).

Alternatively you can also supply a newrelic.yml configuration file for the Java agent and Boxfuse will automatically use that instead. Boxfuse will then install the agent for you, but won't override any application name you may have configured. If you haven't configured a New Relic license key as described above, Boxfuse will use the license key contained in your newrelic.yml configuration file instead.

Java Agent version

By default Boxfuse installs the latest version of the New Relic Java agent. If you want to switch an older version, you can do so using the -components.newrelic-java configuration setting:

> boxfuse run my-app-1.0.jar -components.newrelic-java=3.32.0

To find out which New Relic Java agent versions are available from the Boxfuse Inventory you can simply issue:

> boxfuse inventory newrelic-java

Auto-Scaling