You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesi贸n a prueba de IA

Antes: $249

Currency
$209
Suscr铆bete

Termina en:

0 D铆as
10 Hrs
19 Min
15 Seg

Instrumentaci贸n Application Performance Monitoring

4/23
Resources

How to connect your application to New Relic?

Connecting your application to New Relic is a crucial strategy to monitor its performance and make sure everything is working as it should. Let's start this exciting journey by outlining the step-by-step process for connecting an application called FoodMe to the New Relic platform. This tutorial will guide you through the necessary steps, from obtaining the license key to verifying transactions in real time.

How to obtain the New Relic license key?

First, it is vital to log in to your New Relic account. Once inside, go to your user's settings section to find the license key needed to connect your application. Here are the detailed steps:

  1. Log in to New Relic: Use your email and password to log in.
  2. Find your API Key: Click on your username in the bottom sidebar and select "API Keys".
  3. Copy the license: Look for the entry that says "License" and copy this code. This is your pass to establish the connection.

Where to paste the license key in Glitch?

With the key in hand, it should be integrated into your project. For our case, we will use Glitch:

  1. Log in to Glitch: Log in to your FoodMe project.
  2. Edit the .env file: In the side menu, select the .env file and paste the license key in the License Key field.

How to insert the connection script?

The next step is to use a script that will facilitate the connection to the New Relic service:

  1. Locate the script: Look for the script in the resource area provided. This portion of code contains the instructions for linking to New Relic monitoring.
  2. Add the script in newrelic.js: Go to the newrelic.js file inside your project in Glitch. Paste the script and replace App Name with foodme.

How to confirm that the connection to the service has been successful?

Finally it is crucial to validate if the configured connection is successful:

  1. Interact with your app: Open FoodMe, enter example data such as name and address, and simulate a purchase.
  2. Verify in New Relic: Go back to your New Relic account. From "APM & Services" in the side menu, confirm that the application appears and is properly configured.
  3. Check transactions: Use NRQL (New Relic Query Language) to run a simple query that counts transactions. This ensures that your application is sending data to New Relic:
SELECT count(*) FROM Transaction

What is NRQL and how to perform a basic query?

NRQL is a New Relic-specific query language, similar to SQL, that allows you to query your application data:

  • Perform a simple query: from "Query Your Data", perform a query to check the number of transactions logged. Executing the query SELECT count(*) FROM Transaction will show how many transactions have been performed, confirming that the connection is effective.

Once you have followed these steps, you have successfully connected your application to New Relic, and you are ready to explore the full potential of real-time performance monitoring and data analysis. Take advantage of this opportunity to increase the performance and stability of your applications and continue learning and exploring the wonders of software development and monitoring!

Contributions 7

Questions 4

Sort by:

Want to see more contributions, questions and answers from the community?

ya realice el proceso varias veces y no puedo ver informaci贸n en el apm ![](https://static.platzi.com/media/user_upload/Screenshot%202025-02-01%20at%207.08.04p.m.-377ba170-80c0-41b7-b772-14faf766cff2.jpg)
Se perdieron las fechas de los comentarios? no puedo saber en t茅rminos de tiempo que tan reciente es un comentario y por ende la antiguedad del curso, adicionalmente no puedo ver este script de esta clase en los recursos.

Muy cool el uso de glitch as铆 como la app fulllstack ya desarrollada, muy buena estrctura del curso.

Ya no funciona la explicaci贸n de conectar foodme con newrelic, por favor actuelicen esta parte...
Por alguna razon luego de seguir todos los pasos no me funciona

Clase muy pero muy bien explicado, encantado con el contenido

Tengo un problema porque a de que registro datos en la aplicaci贸nen NewRelic now aparece consumo, como si no llegar谩n las peticiones. 驴Me podr铆n ayudar por favor?