<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=706355809571598&amp;ev=PageView&amp;noscript=1">
Free Assessment
Estimate Project
Menu
Estimate Project

Enable New Relic monitoring with Puma

by Kévin V., on 28 February 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.

1
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.

1
NEWRELIC_DISPATCHER: puma

2. Add it to your New Relic config.

Paste the followig in your newrelic.yml config file.

1
dispatcher: 'puma'

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

See you next time !

New Call-to-action

 
Topics:Under the hood

Comments