监视AWS中的React/Nodejs/MongoDB应用程序

发布于 2025-01-24 12:51:13 字数 118 浏览 1 评论 0原文

我已经在AWS中运行了React/Nodejs/MongoDB应用程序,只是想知道监视应用程序的健康和性能的最佳方法是什么。是使用Dynatrace之类的专业工具还是使用CloudWatch警报和应用程序见解等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. Is it using specialist tools like Dynatrace or using AWS services like CloudWatch Alarms and Application Insights?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

肤浅与狂妄 2025-01-31 12:51:13

监视有点复杂,因此让我们将其分为单独的子主题。

  • 反应。显然,您几乎无法监视它,因为它是在FE上,您唯一可以做的就是将Sentry之类的内容集成到您的应用程序中,并发送您在FE上遇到的错误。 (您也可以将同一事物整合到defo也不会受到伤害)

  • node.js。这取决于您如何运行应用程序。例如,如果您在EC2上运行它,则可以使用CloudWatch +一些自定义指标来监视实例健康。如果您使用的是Kube,则可以进行一些健康检查,Kube可以在运行群集的情况下进行 +监视实例。如果我们谈论的是AWS lambda ...等等:)

  • mongodb。同样,这取决于您的运行方式,无论是EC2还是文档DB,或者您正在使用MongoDB Atlas ...

总的来说,您可以将CloudWatch用作AWS的本机解决方案,或者,您可以将NewRelic类似的内容集成为指标和日志的共产节。

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. (You can integrate same thing into BE, as well, defo won't hurt)

  • Node.js. It depends on how you are running your application. e.g. if you are running it on EC2, you can use CloudWatch + some custom metrics to monitor the instance health. If you are using Kube, there are some health checks that Kube can do + monitoring instances on which you are running your cluster. If we are speaking about AWS Lambda... and so on :)

  • 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...

Overall you can use CloudWatch as a native solution for AWS, alternatively, you could integrate something like NewRelic for metrics, and SumoLogic for logs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文