简体   繁体   English

Amazon OpsWorks NodeJs新的文物集成

[英]Amazon OpsWorks NodeJs New Relic Integration

I am trying to get application metrics from my nodejs app on AWS OpsWorks. 我正在尝试从AWS OpsWorks上的nodejs应用程序获取应用程序指标。 I have been able to get server monitoring working. 我已经能够使服务器监视工作。 However, application metrics are not working. 但是,应用程序指标不起作用。 When I look at the log, it says No metrics to send as if it hasn't collected anything and the Application overview screen in New Relic says the application is idle. 当我查看日志时,它说没有任何度量,就好像它没有收集任何东西一样,New Relic中的“应用程序概述”屏幕显示该应用程序处于空闲状态。

  • I have followed all the setup instructions 我已遵循所有安装说明
  • I require newrelic at the top of my server 我在服务器顶部需要newrelic
  • I am using a simple post route in the Restify framework 我在Restify框架中使用一个简单的发布路线

Has anyone had any success integrating nodejs-agent with an Amazon OpsWorks NodeJs layer app? 有没有人成功将nodejs-agent与Amazon OpsWorks NodeJs图层应用程序集成?

I created a loop in terminal to curl my endpoint every 1 second for 86400 iterations. 我在终端中创建了一个循环,以每1秒卷曲一次端点,进行86400次迭代。 New Relic started showing results, though the counts were reported as only 1 - 3 per minute when it should have been closer to 60. It seems my problem was that my endpoint was very simple and the server spent around 0 - 1 ms and so the nodejs agent didn't realize it had metrics. New Relic开始显示结果,尽管报告的计数应该是每分钟只有1-3分钟,而应该接近60。看来我的问题是我的端点非常简单,服务器花费了大约0-1 ms,因此nodejs代理未意识到它具有指标。 When I did an actual load test where the requests started taking around 200ms, I began to see the data. 当我进行实际的负载测试时,请求开始花费大约200ms的时间,我开始看到数据。

Troubleshooting this issue would require working with New Relic support to determine what's going on here. 解决此问题将需要与New Relic支持一起确定此处发生的情况。 There's a discussion about this on the New Relic community forums which would be a better place to work on this. 在New Relic社区论坛上将对此进行讨论,这将是一个更好的解决方案。 Once we have a definitive answer to this situation we can post a reply here for others to benefit from. 对这种情况有确切的答案后,我们可以在此处发布回复,以使其他人受益。

The current discussion is going on here: https://discuss.newrelic.com/t/amazon-opsworks-integration/4306 当前的讨论在这里进行: https : //discuss.newrelic.com/t/amazon-opsworks-integration/4306

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM