I'd like to get Craft working with New Relic so I can play with my two favorite apps. My web host (EngineHosting) got the New Relic daemons et al going; has anyone tackled getting the Craft side going so that it reports in?

Let me know, please? I may be doing some learning in order to do this integration down the line; but if someone has tackled it, I could dive right on in a bit more quickly.

  • 1
    Can't say I've done more than just install the standard php monitor but it seems to work fine for me, the only downside is everything on the front end gets run through /Craft\TemplatesController/render so that kind of makes the transaction monitoring part a bit useless. Jun 25, 2014 at 10:20
  • Alright awesome. I'll use this to do some troubleshooting and figure out what is going on. Thanks Josh!
    – Lisa
    Jun 25, 2014 at 14:39
  • @nicael Please flag questions as you see fit but we aren't closing questions immediately because of a flag. Jul 11, 2014 at 18:30
  • 2
    "Helpful" doesn't mean immediate closing by moderators for what it's worth. Closing questions is a community process so the question will stay open until it hits the flag limit that closes it or when a moderator agrees it's off topic. Jul 11, 2014 at 18:34
  • 1
    "Has anyone tackled getting the Craft side going so that it reports in?" was the question, @nicael. Which is pretty similar to "How do I integrate Craft in {something}?" and I wouldn't consider this being an announcement. And answering your own questions is totally fine, as you already know.
    – carlcs
    Jul 11, 2014 at 19:56

2 Answers 2


Not quite sure what happened here; Brandon over at EngineHosting re-ran the installation and now I see my info in RPM.

So for future New Relic users that want to integrate with Craft on EngineHosting - at its most basic, ask EH to get New Relic installed for you.

Exciting! Thanks @joshangell for the help. Sometimes knowing it should just work is the key. :)


Editing as requested. EngineHosting fully manages my site/server. I don't have root via SSH so asked them to get the New Relic PHP agent installated (the agent installation requires root). EH did install NR for me, but the first installation did not work and I do not know why. When EngineHosting re-ran the installation, the PHP agent worked and Craft (and other PHP apps, mostly the 'index.php' file for each) started reporting to APM.

That's not helpful for people on cPanel or Plesk hosts, admittedly, nor is it helpful for people with root access doing their own installations. But if you can get the New Relic PHP agent installed where Craft is, then it will report to APM. Looking forward to getting more specific metrics from Craft to New Relic down the line, but that is not likely to come from me :)

With that very basic installation I get information like this:

Craft in NR APM

I hope that helps.

  • Wanted to add to this: so far this is a very basic integration. As those of you that know me well know, I learn by playing, so step 1 is done. Now I can help figure out further integration in my copious spare time. And by copious I mean this could be a while. If anyone else works with NR and Craft, let me know, here or privately!
    – Lisa
    Jun 25, 2014 at 18:11
  • Lisa, could you please edit your answer so that it makes more sense to people not using the same web host as you do? It's too specific I think.
    – carlcs
    Jul 11, 2014 at 20:41
  • I also want to add, that I don't know you (should I) or what your job is (interesting?) and I definitely don't know this Brandon guy from that host shop. So please express questions and answers in a way understandable by all of us.
    – carlcs
    Jul 11, 2014 at 20:44
  • Did your host let you know what was wrong with the first install? Any insights you could give, pointing future readers of this Q/A in the right direction?
    – carlcs
    Jul 11, 2014 at 20:58
  • 1
    Edited my answer.
    – Lisa
    Jul 12, 2014 at 19:30

If you've got New Relic installed on a server containing more than one site, I've found adding:

if (extension_loaded('newrelic')) {
  newrelic_set_appname('NAME OF SITE');

at the top of Craft's index.php allows me to track them individually in New Relic.

  • 1
    Awesome Clive, thank you! :) You can also do that in .htaccess, fyi, especially if the installations are in different directories; then it's very easy.
    – Lisa
    May 18, 2015 at 21:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.