1 回答
- 最新
- 投票最多
- 评论最多
0
You have 2 options:
-
If you have ALB in front of the application, you can get the HTTP error count from CloudWatch metrics https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-cloudwatch-metrics.html#load-balancer-metrics-alb
-
If you don't have ALB, you can first stream the application log to CloudWatch https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.cloudwatchlogs.html
Then, create a metric filter from the CloudWatch log https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/MonitoringPolicyExamples.html. Then you can get the metric of the HTTP response code count from the logs.
已回答 2 年前
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 7 个月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前