Get Rewarded! We will reward you with up to €50 credit on your account for every tutorial that you write and we publish!

How To Install New Relic Monitoring on Linux!

profile picture
Author
Engr. Ali Husnain
Published
2022-09-19
Time to read
3 minutes reading time

About the author- CEO boltflare.com, WordPress Developer, Freelancer & less Conversationalist

Introduction

New Relic is an excellent tool for performance testing and monitoring. This post will teach you how to install New Relic on your Linux VPS hosted on Hetzner Cloud.

Step 1 - Create a New Relic Account

New Relic homepage

Before we can install New Relic on your server, you must first register an account on their website. They understand the importance of providing a free plan so that you can get started with that plan if you're just seeking to explore with the insights that their platform can provide.

Step 2 - Choose an Installation Environment

After you complete creating and validating your account, you will be required to select a "Installation Plan." Here, you should pick Auto-discovery and Linux:

Choose installation environment

Step 2.1 - SSH Into Your Server

SSH into your server now. You will need to use a user with sudo access to do so.

ssh root@<your_host>

When prompted enter your password.

Step 2.2 - Execute the New Relic Installation Script

After you've successfully logged in, run the installation command from New Relic's dashboard, which will look something like this:

curl -Ls https://download.newrelic.com/install/newrelic-cli/scripts/install.sh | bash && sudo NEW_RELIC_API_KEY=NRAK-D8RRVQ--------------HC8KS8AI NEW_RELIC_ACCOUNT_ID=------ /usr/local/bin/newrelic install

The New Relic installation process will then begin.

Installation process started

Which will begin by confirming connectivity to the New Relic platform...

At this point, click Enter to begin the guided installation, which will automatically locate and propose the integrations suitable for your web application. This will also add infrastructure and log data, both of which will be very important for performance monitoring.

Installation integration options

Respond with the keyword "all" (without the double quotation marks), as demonstrated above, and the New Relic installer will be able to locate all instances of PHP on the server.

Following that, you will receive a success message that reads as follows:

New Relic is now installed on your system. Congratulations!

Conclusion

That's all there is to it - you're done! Your New Relic account is currently gathering and monitoring data from your server.

New Relic dashboard

License: MIT
Want to contribute?

Get Rewarded: Get up to €50 in credit! Be a part of the community and contribute. Do it for the money. Do it for the bragging rights. And do it to teach others!

Report Issue
Try Hetzner Cloud

Get €20/$20 free credit!

Valid until: 31 December 2025 Valid for: 3 months and only for new customers
Get started
Want to contribute?

Get Rewarded: Get up to €50 credit on your account for every tutorial you write and we publish!

Find out more