How to view mongoid queries in new relic in rails application [closed]
Asked Answered
F

2

8

I'm usig "newrelic_rpm gem", Its working fine in sqllite(i.e.., embedded db in rails). when using mongoid.yml it shows sql[0] for mongoid. Also it cannot list the mongoid query in http://localhost.com:3000/newrelic/show_sample_sql?id=91570930.

Does new-relic supports mongoid? Give the steps for including mongoid in new-relic appliction.., Thanks in advance

Fitzwater answered 7/2, 2012 at 7:22 Comment(0)
M
6

Preface: I work for New Relic =)

New Relic unfortunately doesn't officially support MongoDB... I was wondering if have you tried using 'rpm_contrib'?

'rpm_contrib' is community sourced instrumentation that is only authored by New Relic, but does contain instrumentation for MongoDB. It doesn't add quite the same level of depth as our official instrumentation, but often times gets the job done. It may be have you're looking for, as far as mongoid support.

https://github.com/newrelic/rpm_contrib

Please feel free to open up a ticket on our support site:

https://support.newrelic.com/

If you have any questions in the future! We're always happy to help.

Best, Seve

Melvinamelvyn answered 8/2, 2012 at 18:1 Comment(1)
rpm_contrib repository is deprecated. Now you should use github.com/newrelic/extends_newrelic_rpmZane
N
15

I've just released a gem that adds instrumentation for Moped / Mongoid 3: https://github.com/stevebartholomew/newrelic_moped

It's literally just gone up so I'll be tidying up the project over the next few days but it's perfectly useable, logging all queries you make under the SQL tab.

Norri answered 22/6, 2012 at 13:48 Comment(1)
Thanks for creating this, sorely needed!Dallman
M
6

Preface: I work for New Relic =)

New Relic unfortunately doesn't officially support MongoDB... I was wondering if have you tried using 'rpm_contrib'?

'rpm_contrib' is community sourced instrumentation that is only authored by New Relic, but does contain instrumentation for MongoDB. It doesn't add quite the same level of depth as our official instrumentation, but often times gets the job done. It may be have you're looking for, as far as mongoid support.

https://github.com/newrelic/rpm_contrib

Please feel free to open up a ticket on our support site:

https://support.newrelic.com/

If you have any questions in the future! We're always happy to help.

Best, Seve

Melvinamelvyn answered 8/2, 2012 at 18:1 Comment(1)
rpm_contrib repository is deprecated. Now you should use github.com/newrelic/extends_newrelic_rpmZane

© 2022 - 2024 — McMap. All rights reserved.