📜 ⬆️ ⬇️

New Relic - full monitoring of your RoR application

Moved here recently to a new VDS for their sites on webbynode.com hosting. All very rail-made. But now it's not about them.

When registering offered to make an account in the monitoring application RoR sites. They are called New Relic . Looked at the presentation, and I must admit, very impressed. As a promotional campaign, they give a weekly gold-account, where you can take advantage of all the reports. This, my friends, is worth the attention.

Dashboard for light version
New Relic RPM - Overview (color_mondays)

')

Apdex score



Installed as a typical plugin, restart the server and the application starts collecting statistics. One of the good indicators of Apdex - shows the degree of satisfaction of visitors, depending on page load time.

Apdex is an industry standard and has predefined values, for example, waiting above 4 seconds disappoints visitors. By the way, you can adjust the time by which the index will be measured in your configuration file.

In dynamics, it looks like this. Light dips at 11-15 and 11-45.
New Relic RPM - Apdex (color_mondays)

Most brake controllers



Apdex gives only a general picture of the stability of the application. Therefore, we must go down to the details. The first thing you can check is the processing time per controller.

My most long-lasting controllers look like this:
New Relic RPM - Apdex (color_mondays)

There is a reason to dig and optimize the code, reduce the number of requests to the database.

The processing time is also understandable. A lot of file importing and other resource-intensive actions
New Relic RPM - Controllers (color_mondays)

You can cut into pieces all the actions of the controller and analyze what causes the greatest delays there. Here for actions save_product I download pictures slowly. It is understandable. Do not optimize too much.
New Relic RPM - Controllers (color_mondays)

Application errors



This is aerobatics. Unfortunately, the feature is not available in the free version (like most of the goodies). It scans application errors, groups them. No need to dig into the long logs, find out exactly where the failure was. In general, a fairy tale. For commercial applications, in my opinion, a very popular thing.

A piece of the life of the application. Below you can see all the errors and their number.
New Relic RPM - Errors (color_mondays) -1

Power Artillery



The Gold version (which I managed to test) includes such analysis tools as evaluating database requests and working with ActiveRecord . New Relic scans all requests to the database. You can filter them, sort them by type. Here are my toughest requests

New Relic RPM - Controller Report (color_mondays) -1

The table with the sessions became very heavy and saving and searching there is no longer a cake. And the sessions, what to grumble, one of the important parts of the application.

Dashboards and reports



The overall and most critical statistics are displayed on the main dashboard. It has its own API and you can easily embed it in your applications. The indicators themselves are configured according to the well-known principle of traffic lights (green - ok, yellow - warning, red - ass).

That's how I set up my lights. Special attention to the memory, it is still a bit.
New Relic RPM - Managed Applications_ grossu-1

Once a week a report is sent and already in a relaxed atmosphere, having lit a pipe and covered with a rug, you can see how the application worked, and how many people we left unsatisfied.

[New Relic] Weekly Performance Report for grossu - mkalachev@gmail.com - Gmail

At last



In my opinion, one of the standing things, sharpened for applications on different Ruby frameworks. Expensive, of course. But for commercial applications it is worth it. And besides, there is a free light version;)

Link to the main features of New Relic

Source: https://habr.com/ru/post/63072/


All Articles