使用AWS CloudWatch监视C++ (本地,而不是云)程序
我正在尝试创建一个简单的C ++程序,该程序将类似于实时状态消息的内容发送给AWS CloudWatch,以告知其正在运行并运行,并且在关闭时状态(实时在线/离线状态)时,状态会脱机。 C ++程序将安装在多个用户的计算机上,因此CloudWatch上的仪表板就像仪表板一样。这甚至可能吗?在警报/日志/指标/事件之间,我迷失了AWS。
我还想从安装程序的每个PC中发送一些统计数据,例如CPU使用情况,是否也可以在CloudWatch上制作仪表板以监视此仪表板?我可以随意使用我想要的任何数据创建仪表板吗?我发现的所有教程都谈论将CloudWatch与其他AWS服务(例如Lambda和EC2)集成在一起,这不是我的情况。
先感谢您。
I am trying to create a simple C++ program that sends something like a real-time status message to AWS CloudWatch to inform that it is up and running, and the status goes offline when it's closed (real-time online/offline status). The C++ program will be installed at multiple users' computers, so there will be like a dashboard on CloudWatch. Is this even possible? I'm lost on AWS between Alarms/Logs/Metrics/Events..etc.
I also want to send some stats from each PC where the program is installed, like CPU usage for example, is it possible to make a dashboard on CloudWatch to monitor this as well? Am I free to create dashboard with whatever data I want? All the tutorials I found talk about integrating CloudWatch with other AWS services (Like Lambda and EC2) which isn't my case.
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
监视过程的最佳方法是使用AWS CloudWatch Procstat插件。首先,使用EC2的PID文件位置创建一个CloudWatch配置文件,并监视该过程的Memory_RSS参数。您可以阅读在这里更多的。
对于
stats
,您可以在每台计算机上安装CloudWatch代理并收集必要的指标。您可以阅读在这里更多。The best way to monitor a process will be using AWS CloudWatch procstat plugin. First, create a CloudWatch configuration file with PID file location from EC2 and monitor the memory_rss parameter of the process. You can read here more.
For
stats
you can install CloudWatch Agent on each machine and collect necessary metrics. You can read here more.