One of the App settings provided by AWS Amplify is Monitoring, which allows us to monitor metrics like site traffic, configure alarms, and access logs for our Amplify applications in nearly real time.
In this article, we will look at the definitions of CloudWatch metrics in the AWS/AmplifyHosting namespace for monitoring our app traffic, errors, data transfer, and latency.
When we decide to monitor our app hosted on AWS Amplify, we navigate to the app settings sidebar and click on the Monitoring tab, which takes us to the monitoring page, as shown in the image below.
So, what do all these terms mean?
According to the Monitoring and CloudWatch section of the AWS Amplify Hosting, Here is what they mean.
Requests: This is the total number of viewer requests Amplify Hosting receives for all HTTP methods and HTTP and HTTPS requests, which means it is how often people visit our website hosted on Amplify, including all types of requests like clicking links or loading pages with HTTP or HTTPS.
Bytes downloaded: The total amount of data transferred out of our app (downloaded) in bytes by viewers for GET, HEAD, and OPTIONS requests, which means it shows the total data sent from our app to users when they download something, like images or files, through actions like clicking links or accessing pages.
BytesUploaded: This is the total amount of data transferred into our app (uploaded) in bytes using POST and PUT requests. Therefore, it represents the complete data our app receives when users upload files or submit forms, typically through actions like posting comments or uploading images.
4XXErrors: The number of requests that returned an error in the HTTP status code 400-499 range. This metric counts the requests that encountered errors on the user's end, like entering incorrect information or trying to access restricted content, resulting in an error response from the server.
5XXErrors: The number of requests that returned an error in the HTTP status code 500-599 range. This metric counts the requests that encountered errors on the user's end, like entering incorrect information or trying to access restricted content, resulting in an error response from the server.
Latency: This metric measures how quickly Amplify Hosting responds to a request, from when it receives it until it sends the first byte of data back to the network. It excludes the time the response travels to the viewer's device.
Key statistics include the average, maximum, minimum, and various percentiles (p10, p50, p90, p95, p100), providing insights into response times across different scenarios.
For more details about the metrics, we can access the CloudWatch metrics in the AWS Management Console here.
Top comments (0)