AWS Elastic Beanstalk is a dynamic service that allows easy deployment and scalability for your applications. Follow these instructions to install AWS with New Relic Servers for Linux. For more information about using Amazon tools with New Relic, see Amazon Web Services (AWS) users.
Before you install New Relic's Linux agent, make sure you have a supported Amazon Web Services account. In addition, for any New Relic installation, you will need your New Relic license key. This is a 40-character hexadecimal string that New Relic provides when you sign up for your account.
Download the Linux agent for Servers
To download the latest New Relic agent for New Relic Servers:
- Log in to New Relic.
- From the account dropdown in the New Relic UI, select Account settings.
- Select the option to download the agent for your platform.
Install the Linux agent
To install New Relic's Linux Server Monitor (LSM) agent on AWS Elastic Beanstalk:
- In the .ebextensions folder inside your Elastic BeanStalk application, create a new file named newrelic.config.
Add the following content to the file:
packages: yum: newrelic-sysmond:  rpm: newrelic: INSERT_LINK_TO_AGENT commands: "01": command: nrsysmond-config --set license_key=INSERT_LICENSE_KEY "02": command: echo hostname=NAME_OF_YOUR_SERVER >> /etc/newrelic/nrsysmond.cfg "03": command: /etc/init.d/newrelic-sysmond start
INSERT_LINK_TO_AGENTwith the appropriate URL:
INSERT_LICENSE_KEYwith your New Relic license key.
Push your app to Elastic BeanStalk:
For more help
Additional documentation resources include: