简体   繁体   English

在 AWS 中监控 React/NodeJS/MongoDB 应用程序

[英]Monitoring React/NodeJS/MongoDB application in AWS

I have React/NodeJS/MongoDB application running in AWS and just wondering what is the best way to monitor the application's health and performance.我有在 AWS 中运行的 React/NodeJS/MongoDB 应用程序,只是想知道监控应用程序运行状况和性能的最佳方法是什么。 Is it using specialist tools like Dynatrace or using AWS services like CloudWatch Alarms and Application Insights?是使用 Dynatrace 等专业工具,还是使用 CloudWatch Alarms 和 Application Insights 等 AWS 服务?

The monitoring is a bit of a complex topic, so let's split it into separate sub-topics.监控是一个有点复杂的话题,所以让我们把它分成单独的子话题。

  • React.反应。 Apparently, you can hardly monitor it since it is on FE, the only thing you can do is integrate something like Sentry into your application and send errors that you got on the FE.显然,你很难监控它,因为它在 FE 上,你唯一能做的就是将类似 Sentry 的东西集成到你的应用程序中,并发送你在 FE 上遇到的错误。 (You can integrate same thing into BE, as well, defo won't hurt) (你也可以将同样的东西集成到 BE 中,defo 不会有坏处)

  • Node.js. It depends on how you are running your application. Node.js。这取决于您运行应用程序的方式。 eg if you are running it on EC2, you can use CloudWatch + some custom metrics to monitor the instance health.例如,如果您在 EC2 上运行它,您可以使用 CloudWatch + 一些自定义指标来监控实例健康状况。 If you are using Kube, there are some health checks that Kube can do + monitoring instances on which you are running your cluster.如果您使用的是 Kube,Kube 可以执行一些健康检查 + 监控您运行集群的实例。 If we are speaking about AWS Lambda... and so on:)如果我们谈论的是 AWS Lambda...等等:)

  • MongoDB. Again it depends on how you are running it, whether it is an EC2 or Document DB, or maybe you are using MongoDB Atlas... MongoDB。同样,这取决于您的运行方式,无论是 EC2 还是文档数据库,或者您使用的是 MongoDB Atlas...

Overall you can use CloudWatch as a native solution for AWS, alternatively, you could integrate something like NewRelic for metrics, and SumoLogic for logs.总的来说,您可以将 CloudWatch 用作 AWS 的原生解决方案,或者,您可以集成诸如 NewRelic 之类的指标和 SumoLogic 之类的日志。

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

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