Blog

Enable New Relic monitoring with Puma

Icône flèche bleue vers la gauche
Back to blog
Enable New Relic monitoring with Puma

Enable New Relic monitoring with Puma

February 27, 2013

Today I wanted to try out Puma on a Heroku project. Works great, but I quickly realized my app wasn’t reporting to New Relic, which is kind of a bummer. Here’s a compilation of what I found to be working with the latest version, 1.6.2 at the time of writing.

1. Add an environment variable.

NEWRELIC_DISPATCHER=puma

Or, if you use something like Figaro, just add the following to your application.yml, and run the rake figaro:heroku task.

NEWRELIC_DISPATCHER: puma

2. Add it to your New Relic config.

Paste the followig in your newrelic.yml config file.

dispatcher: 'puma'

There, two easy steps and it’s all better.

See you next time !

Ready to build your software product? Contact us!