Apdex in New Relic es una herramienta poderosa que nos permite medir la satisfacción de nuestros usuarios y mejorar la experiencia de nuestros aplicativos.
La configuración de Apdex en New Relic es un proceso sencillo que se puede realizar en pocos pasos.
Los pasos para configurar Apdex en New Relic incluyen seleccionar el período de tiempo para calcular la satisfacción del usuario, que puede ser de 1 a 60 minutos.
La configuración de Apdex en New Relic también permite personalizar la fórmula para calcular la satisfacción del usuario según las necesidades de nuestro negocio.
Cómo Utilizar Apdex en New Relic
The Apdex score is a ratio value of the number of satisfied and tolerating requests to the total requests made. Each satisfied request counts as one request, while each tolerating request counts as half a satisfied request.
An Apdex score varies from 0 to 1, with 0 as the worst possible score (100% of response times were Frustrated), and 1 as the best possible score (100% of response times were Satisfied).
To calculate the Apdex score, you need to know the threshold time, which is the maximum time a request is allowed to take. In New Relic, this value is arbitrary and is selected by the user.
The Apdex score can be calculated using the following formula: (number of satisfied requests + (number of tolerating requests / 2)) / total number of requests.
For example, let's say during a 2-minute period, a host handles 200 requests, and the Apdex threshold T = 0.5 seconds (500ms). 170 requests were handled within 500ms, 20 requests were handled between 500ms and 2 seconds (2000 ms), and the remaining 10 requests were not handled properly or took longer than 2 seconds.
Here's how you can calculate the Apdex score for this scenario:
The resulting Apdex score is 0.9: (170 + (20/2))/200 = 0.9.
New Relic lets you inspect your site's performance using Apdex scores, and it also promptly notifies you of any identified issues through alerts.
Personalización y Configuración
You can customize Apdex settings to suit your needs. To do this, you can define Apdex T values for each application, as well as set individual Apdex T thresholds for specific transaction keys.
Apdex settings can only be changed for applications that actively report data. If an application isn't reporting, you won't see the Apdex configuration options.
The default Apdex T threshold for a server application is 0.5 seconds. To change the default threshold for web transactions, you can modify the server application's settings.
You can use the query generator to personalize how you view Apdex data. This includes creating a dashboard to analyze and share your Apdex data, as well as analyzing your data with NRQL queries.
Personaliza las Visualizaciones
You can create a custom dashboard to analyze and share your Apdex data. This is a great way to visualize your data and make it easier to understand.
To do this, you can use the query generator to personalize how you view Apdex. This will allow you to tailor the dashboard to your specific needs.
Here are some ways to use the query generator:
- Crea un panel para analizar y compartir sus datos de Apdex.
- Analice sus datos de Apdex con NRQL consulta.
With these tools, you'll be able to get a better understanding of your Apdex data and make data-driven decisions.
Cambiar la Configuración
You can change the Apdex configuration to suit your needs. This includes defining Apdex T values for each application and setting individual Apdex T thresholds for transaction keys.
Only applications that actively report data allow you to change the Apdex threshold. If an application isn't reporting data, you won't see its Apdex configuration options.
The default Apdex T threshold for a server is 0.5 seconds.
New Relic APM
New Relic APM is a powerful tool that helps you analyze and enhance application interactions. It's a software analytics solution that's readily available for all Adobe Commerce projects hosted on cloud infrastructure.
One of its key features is the Focus on Specific Transactions, which allows you to track and monitor critical customer actions on your website. These actions include adding items to the shopping cart, progressing through the checkout process, or completing payment transactions.
New Relic APM also helps you gain valuable insights into database queries that can affect the performance of your application. This is done through its Monitoring Database Queries feature.
Here are some of the key features of New Relic APM:
- Focus on Specific Transactions
- Monitoring Database Queries
- App Map
- Measure Apdex Scores
- Managed Alerts for Adobe Commerce
- Track deployments
Recuentos
Recuentos de Apdex son una herramienta valiosa para medir la satisfacción de los usuarios con tu aplicación. El tiempo de respuesta es la clave para entender si los usuarios están satisfechos, tolerando o frustrados con tu aplicación.
El tiempo de respuesta es menor o igual a T para que los usuarios estén satisfechos. En nuestro ejemplo, T = 1,2 segundos, por lo que el tiempo de respuesta debe ser ≤ 1,2 segundos para que los usuarios estén satisfechos.
El tiempo de respuesta es mayor que T y menor o igual a 4T para que los usuarios estén tolerando. En nuestro ejemplo, 4 x 1,2 = 4,8 segundos es el tiempo de respuesta máximo tolerable.
El tiempo de respuesta es superior a 4T o la solicitud devuelve un error del lado del servidor para que los usuarios estén frustrados. Una tasa de errores alta puede hacer que los usuarios estén satisfechos, pero una puntuación Apdex baja.
Aquí hay un resumen de los niveles de Apdex y sus tiempos de respuesta correspondientes:
New Relic APM
New Relic APM is a powerful tool that helps you analyze and enhance application interactions. It's a software analytics solution that's readily available for all Adobe Commerce projects hosted on cloud infrastructure.
New Relic APM has various features, including tracking and monitoring critical customer actions on your website. These actions include adding items to the shopping cart, progressing through the checkout process, or completing payment transactions.
You can also use New Relic APM to monitor database queries and gain valuable insights into the queries that can affect the performance of your application. The App Map feature offers a clear view of your application's dependencies, including internal extensions and external services.
New Relic lets you inspect your site's performance using Apdex scores, which can be calculated based on your application's configuration. For example, if your Apdex T value is 1.2 seconds, a satisfied user experience would be a response time of 1.2 seconds or less.
Here's a breakdown of Apdex levels and their corresponding time ranges:
You can use Apdex to visualize the impact of server-side errors, such as 500: Application Error, and then identify and resolve these errors with New Relic's built-in error analytics and error profile tools.
Calculando la Puntuación
The Apdex score is calculated by dividing the number of satisfied samples plus half the tolerated samples by the total sample number. This equation helps determine a responsiveness score for a system.
To calculate the Apdex score, you need to categorize all interactions between people and your application as satisfying, tolerable, or frustrating. Failing requests are always considered frustrating.
The Apdex formula results in a value between 1 and 0, where 1 is perfect and 0 is the absolute worst. This makes it easy to spot why app performance is below expectations.
Dissatisfaction Percentage
The dissatisfaction percentage is a crucial metric to understand in calculating Apdex scores. It measures the percentage of total dissatisfaction experienced by an app's users that is contributed by a transaction.
To calculate the dissatisfaction percentage, you can use the formula Frustrations(Transaction) + Tolerations(Transaction)/2. This will give you a clear picture of which transactions are causing the most dissatisfaction.
Transactions that are always frustratingly slow but rarely visited may not contribute much to the app's total dissatisfaction. This is because they are infrequently used, so their impact is minimal.
On the other hand, transactions that are normally fast but have high throughput may contribute a large proportion of the app's dissatisfaction. This is because they are frequently used, so their impact is significant.
To visualize dissatisfaction percentage, you can sort your transactions by most dissatisfying. This will help you identify which transactions need the most attention to improve user satisfaction.
Calculating the Score
The Apdex score is calculated using a simple equation: the number of satisfied samples, plus half the tolerated samples, divided by the total sample number.
This equation takes into account the number of users who are satisfied with the application's responsiveness, as well as those who are tolerating slower responses.
For example, if a system has 100 total users with 70 satisfied users and 20 users who are tolerating slower responses, the equation would be (70+20/2)/100= 0.8.
The Apdex score falls between 0 and 1, where 1 is perfect and 0 is the absolute worst.
An excellent score falls between 0.94 and 1.00, while a good score ranks from 0.85 to 0.93.
To calculate the Apdex score, all interactions between people and your application are categorized as satisfying, tolerable, or frustrating.
Failing requests are always considered frustrating, and it's a good idea to split errors from the frustrating category to make it easier to spot why the app performance is below expectations.
The Apdex formula results in a value between 1 and 0, where 1 is perfect and 0 is the absolute worst.
The Apdex score can be used to identify areas of improvement in your application's performance, such as transactions that are consistently frustrating users.
To visualize dissatisfaction percentage, you can sort your transactions by most dissatisfying, which can help you identify the root cause of the issue.
If a transaction is always frustratingly slow but rarely visited, it will not contribute much to the app's total dissatisfaction.
Frequently Asked Questions
What is Apdex New Relic?
Apdex New Relic is a simplified metric that measures user satisfaction with your app, providing a more accurate picture than traditional metrics like average response time. It uses Apdex score and dissatisfaction percentage to help you understand how users feel about your app's performance.
What is a good APDEX score?
A good APDEX score ranges from 0.93 to 0.85, indicating a balance between user satisfaction and system performance. Scores within this range suggest a well-tuned system that meets user expectations.
How is the APDEX score calculated?
The APDEX score is calculated by dividing the sum of Satisfied scores and half of Tolerating scores by the total number of scores. This simple equation provides a clear measure of user satisfaction, but let's dive deeper into the details of how it works.
Sources
- https://docs.newrelic.com/es/docs/apm/new-relic-apm/apdex/apdex-measure-user-satisfaction/
- https://www.mgt-commerce.com/tutorial/magento-2-new-relic-integration/
- https://docs.newrelic.com/docs/apm/new-relic-apm/apdex/apdex-measure-user-satisfaction/
- https://www.techtarget.com/searchitoperations/definition/Application-Performance-Index-Apdex
- https://alanta.nl/posts/2023/05/apdex-score-for-azure
Featured Images: pexels.com