DEV Community

Prathamesh Sonpatki
Prathamesh Sonpatki

Posted on • Originally published at prathamesh.tech on

4 1

User friendly servers list in New Relic

We use New Relic to monitor performance of our Rails app. We have multiple docker containers running our web app and Sidekiq workers.

On New Relic dashboard, the list of servers is displayed in a dropdown as follows.

As you can see the names of the servers are not very intuitive. It will be better if we know which server runs what part of the application.

New Relic allows setting an environment variable NEW_RELIC_PROCESS_HOST_DISPLAY_NAME for this purpose. We can set this per process or container to distinguish between them in the New Relic dashboard.

We set the environment variable inside the docker container images based on whether that container served web app or ran Sidekiq workers.

The end result is this.

This helps us in monitoring each server separately in New Relic dashboard very easily.


Interested in knowing more about how we monitor and improve performance of our Rails apps? Don't miss out the tips and tricks by joining my newsletter.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Cloudinary image

Video API: manage, encode, and optimize for any device, channel or network condition. Deliver branded video experiences in minutes and get deep engagement insights.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay