简体   繁体   English

AWS CloudWatch指标

[英]AWS cloudwatch metrics

I would like to know more details and impact on aws cloud watch metrics- aws docs does have much details on metrics 我想了解更多详细信息以及对AWS Cloud Watch指标的影响-AWS文档确实包含有关指标的很多详细信息

what is the difference between below metrics ? 以下指标之间有什么区别?
What is the impact on application or aws instance if below alerts triggers ? 如果以下警报触发,会对应用程序或AWS实例产生什么影响?

  1. Http Server Errors GreaterThan 0 (Count) in the last 5 minutes was activated 过去5分钟内激活的Http服务器错误大于0(计数)
  2. Requests GreaterThan 100 (Count) in the last 5 minutes 在过去5分钟内要求大于100(计数)
  3. Http 404 GreaterThan 0 (Count) in the last 5 minutes' was activated 过去5分钟内的Http 404大于0(计数)被激活
  4. Requests GreaterThan 500 (Count) in the last 5 minutes' was activated 最近5分钟内请求大于500(计数)的请求已激活

Cloudwatch checking these errors in logs ? Cloudwatch检查日志中的这些错误?

These metrics are related to your load balancer. 这些指标与您的负载均衡器有关。 Here is my explanation: 这是我的解释:

  1. the web server behind the load balancer throws an HTTP errors with code 5XX - indicating that your server cannot perform the request. 负载均衡器后面的Web服务器抛出HTTP错误,代码为5XX-表示您的服务器无法执行请求。 This can be due to several reasons such as Internal Server Error , Not Implemented (eg the server expects POST but the client sends GET), Gateway Timeout (eg the server executes a slow db query and the result does not come back in time), etc. 这可能是由于多种原因造成的,例如“ Internal Server Error ,“ Not Implemented (例如,服务器期望POST而客户端发送GET),“ Gateway Timeout (例如,服务器执行慢速的数据库查询并且结果未及时返回),等等
  2. the number of requests completed or connections made is more than 100 - indicating exactly what is says. 已完成的请求或建立的连接数超过100-准确说明了该内容。
  3. the number of "Not Found" messages received by the clients - indicating that the client is requesting a page which does not exist in your application (for instance, https://stackoverflow.com/test ) 客户端收到的“未找到”消息的数量-表示客户端正在请求您的应用程序中不存在的页面(例如https://stackoverflow.com/test
  4. the number of requests completed or connections made is more than 500 - the same as number 2 but indicating even more requests. 已完成的请求或建立的连接数超过500-与数字2相同,但表明请求数甚至更多。

If all these alarms are triggered at once, there is probably high load on your server and it is not functioning optimally. 如果同时触发所有这些警报,则可能是服务器上的负载过大,并且无法最佳运行。 More than that, though, is hard to say. 但是,很难说更多。 You need to check the maximum number of errors. 您需要检查最大错误数。 The most important one is 5XX (number 1). 最重要的是5XX(数字1)。 The load balancers, publish these metrics to CloudWatch and these don't have anything to do with your application log (if I understood the question correctly). 负载平衡器会将这些指标发布到CloudWatch,并且与您的应用程序日志没有任何关系(如果我正确理解了这个问题)。

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

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