监控 node.js 服务器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5580776/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 14:00:25  来源:igfitidea点击:

monitoring a node.js server

node.js

提问by Michael Neale

I am looking for a way to get some sort of monitoring, statistic or management data out of a node.js server instance - not sure what to search for or where to start. Any advice appreciated.

我正在寻找一种从 node.js 服务器实例中获取某种监控、统计或管理数据的方法 - 不确定要搜索什么或从哪里开始。任何建议表示赞赏。

Stats would be requests processed (if applicable) - number of connections and so on.

统计信息将是处理的请求(如果适用) - 连接数等。

采纳答案by yojimbo87

Don't know if it will fit your needs, but you can try to look at node-monitor. Also Joyent is doing some advanced real-time performance analysisstuff, but it's probably only for their cloud services.

不知道它是否适合您的需求,但您可以尝试查看node-monitor。Joyent 也在做一些高级的实时性能分析,但可能只针对他们的云服务。

回答by logix

Nodetimecan monitor different metrics, such as HTTP Response time, CPU time, OS Load, etc. It is also possible to set up email Alerts based on these metrics. More in the blog post Monitoring Node.js Application Performance.

Nodetime可以监控不同的指标,例如 HTTP 响应时间、CPU 时间、操作系统负载等。也可以根据这些指标设置电子邮件警报。更多信息请参阅博客文章监控 Node.js 应用程序性能