Using CloudWatch for traffic monitoring on EBS

0

Hello all -

First post here and fairly new to AWS (been a developer for 20+ yrs).

I recently deployed a simple .NET app in EBS. I even managed to use CodePipeline for CICD deployments. Works nice.

My "next step" which is mostly experimental for learning, is to enable some basic traffic monitoring. 200x, 400x, 500x requests and so on. I went into CloudWatch and experimented with some dashboards but despite my best tinkering, I'm not getting any metrics.

FWIW - I have in fact enabled Advanced Health Reporting on the EBS Environment for the app.

Thanks in advance!

已提問 2 年前檢視次數 221 次
1 個回答
0

You have 2 options:

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

  2. 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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南