Blog

Blog

PHODAL

NodeJS New Relic安装指南

在完成iot-coap的node包之后,开始在服务器上部署,又想到了New Relic,于是开始了安装之旅。

NodeJS New Relic安装指南

1.安装Node 版本至少是0.8

2.安装newrelic

npm install newrelic

3.从node_modules/newrelic复制newrelic.js到应用目录

4.设置newrelic.js

1). 起一个app_name

2). 复制license_key到这个js中

5.在应用中添加newrelic库

require('newrelic');

6.部署应用

tips: 数据应该可以在五分钟看到。

其他

不知是不是因为是iot-coap包和new relic没有处理好,在后台基本上没有数据。

关于我

Github: @phodal     微博:@phodal     知乎:@phodal    

微信公众号(Phodal)

围观我的Github Idea墙, 也许,你会遇到心仪的项目

QQ技术交流群: 321689806
comment

Feeds

RSS / Atom

Recent Posts

About the Author

Phodal Huang

Engineer, Consultant, Writer, Designer

ThoughtWorks Tech Lead

Engineer / Consultant / Writer / Design Apprentice

Deep Open Source Enthusiast

Author of "Frontend Architecture: from Basic to Micro-Frontend", "Design IoT System by Yourself", "Full Stack Development: Lean Practice"

Contact me: h@phodal.com

WeChat Official Account: Latest Tech Sharing

Tags