如何在rails应用程序的new relic中查看mongoid查询
我正在使用“newrelic_rpm gem”,它在 sqllite 中工作正常(即,rails 中的嵌入式数据库)。使用 mongoid.yml 时,它显示 mongoid 的 sql[0] 。此外,它无法在 http://localhost.com:3000/newrelic/show_sample_sql 中列出 mongoid 查询?id=91570930。
new-relic 支持 mongoid 吗? 给出将 mongoid 包含在 new-relic 应用程序中的步骤.., 提前致谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚发布了一个为 Moped / Mongoid 3 添加仪器的 gem: https://github.com/stevebartholomew/newrelic_moped
它实际上刚刚上升,所以我将在接下来的几天内整理该项目,但它完全可用,记录您在 SQL 下进行的所有查询选项卡。
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.
前言:我为 New Relic 工作 =)
不幸的是,New Relic 并不正式支持 MongoDB...我想知道您是否尝试过使用“rpm_contrib”?
“rpm_contrib”是社区来源的工具,仅由 New Relic 编写,但包含 MongoDB 的工具。它并没有增加与我们的官方仪器相同的深度,但通常可以完成工作。就 mongoid 支持而言,它可能是您正在寻找的。
https://github.com/newrelic/rpm_contrib
请随时在我们的支持网站上开具票证:
https://support.newrelic.com/
如果您以后有任何疑问!我们总是很乐意提供帮助。
最好的,
塞维
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