For this recipe, we will deploy a Play 2.0 web app using Docker and Digital Ocean, and monitor the web app using New Relic. We will deploy the web app as a Docker container and detail out how to instrument the computer-database-scala sample web application using a New Relic JAR file integrated with our activator build script.
For this recipe, you need to perform the following steps:
First, sign up for a New Relic account at https://newrelic.com/signup
Create a new Java application in the New Relic dashboard:
During the creation of the Java application, please make note of your New Relic license key:
Next, download the New Relic Java agent ZIP and make note of the download location. This ZIP file should contain the Java agent library, license key file, API documentation, and other useful New Relic resources.
Unzip the Java agent ZIP file and make note of two important files that we will need,
newrelic.yml
andnewrelic.jar
:$ ls ~/Downloads/newrelic/ ...