Table of Contents
One of the more popular products on the market right now is NewRelic for application monitoring. What's cool is you can also use their Server product to monitor an unlimited number of servers using the same license key. This tutorial will briefly walk you through how to set this up on your ProfitBricks Ubuntu servers.
Setting Up the Pre-Requisites
Before you begin you should first issue an
apt-get update command at the shell. Once you've pulled the latest updates go ahead and install the following if you do not have these on your server yet:
apt-get install ca-certificates wget
Install and Configure NewRelic Server
First, let's add the NewRelic apt repository:
echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list
Next, go ahead and trust the NewRelic GPG key:
wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add -
apt-get update to ensure you can install the latest version of NewRelic's Server product.
apt-get install -y -qq newrelic-sysmond
Finally, it is time to set your license key. If you do not have this key you will need to log into your NewRelic dashboard and retrieve it from your settings. I
nrsysmond-config --set license_key=LICENSE_KEY
Now, just start the service and you're good to go.