The quickest way to get started with our infrastructure monitoring agent is through our guided install. If you're in the EU, try our EU guided install. Either way, if you haven't already, create your free New Relic account below.
If guided install doesn't work, you can install the agent manually. Before installing infrastructure, be sure to:
- Review the requirements.
- Have a valid .
To install infrastructure in Linux, follow these instructions:
Create the configuration file and add your :bash$echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml
Determine the distribution version number:
Enable New Relic's GPG key:
Add the infrastructure monitoring agent repository:
Refresh the repositories:
newrelic-infrapackage in root (default), privileged user, or unprivileged user mode. For more information on each running mode, see Linux agent running modes.
Once the infrastructure monitoring agent is installed or updated, you can start, stop, or check the agent status.
Follow standard procedures to update the infrastructure monitoring agent.
If you are using
sudo to install or update the agent, use the
-E argument to allow bypassing the environment variables, or specify the
NRIA_MODE environment variable just after
$sudo -E YOUR_PACKAGE_MANAGER_UPDATE_COMMAND
The hostname for your server cannot be
localhost. Data will not be reported for servers with that name. Make sure the host name uses a unique name.
- Learn to use your host data to troubleshoot an incident.
- Add custom attributes to annotate your infrastructure data.
- Connect your AWS account if your servers are hosted on Amazon EC2.
- Enable log forwarding.
- Add other New Relic infrastructure integrations to collect data from external services.