On this page

New Relic

Overview

New Relic can be used on Clever Cloud with Java, NodeJS, PHP, Ruby and Scala applications.

New Relic is a software analytics company based in the United States. New Relic’s technology monitors Web and mobile applications in real-time that run in cloud, on-premise, or hybrid environments. You can easily setup a New Relic based monitoring on your application to monitor it and find performances problems.

New Relic for NodeJS and Ruby

New Relic is very simple to install in a NodeJS or Ruby application as it is a simple dependency. Install instructions for NodeJS and Ruby are available in the New Relic documentation.

New Relic for Python

To use New Relic in Python, you have to add the newrelic dependency into your requirements.txt file.

New Relic for Java, Scala and PHP

To use New Relic in Java, Scala or PHP instances, you need to configure it as it is provided directly inside the instances.

New Relic configuration

Necessary information

Before setting up your app, be sure to have a New Relic Account.

Configuration

To configure your New Relic, you need to set the environment variables NEWRELIC_LICENSE and NEWRELIC_APPNAME (optional).

Alternatively you can create and add a ./clevercloud/newrelic.json file in your project, with the following fields:

{
  "license": "licenceID",
  "appname": "NameOfYourApp(optional)"
}

If the appname or NEWRELIC_APPNAME is not specified, we use your application id for the name.

Usage

Just redeploy your application on Clever Cloud for the changes to take effect. A few minutes later, your application will begin sending data to New Relic. Once New Relic receives the data, your application will be listed in the dashboard.