S3 CloudWatch Metrics

S3 CloudWatch Metrics

S3 CloudWatch Metrics

Hello Everyone

Welcome to CloudAffaire and this is Debjeet

In the last blog post, we have discussed inventory in S3.

https://cloudaffaire.com/inventory-in-s3/

In this blog post, we are going to discuss S3 CloudWatch Metrics.

S3 CloudWatch Metrics:

AWS S3 provides CloudWatch metrics to effectively monitor your S3 bucket. Metrics help you to understand the usage and performance of your bucket. S3 provides three types of metrics for your bucket

  1. Storage Metrics (Free)
  2. Request Metrics (Paid)
  3. Data Transfer Metrics (Paid)

Storage Metrics:

When you create an S3 bucket, AWS S3 enables storage metrics for your bucket. You can use storage metrics to track the total size and object count for your bucket. Storage metrics are collected at an interval of 24 hours and with no additional charges.

S3 CloudWatch Metrics

Request Metrics:

Request metrics can be used to monitor requests to your bucket. The metrics are available at 1-minute intervals and are kept for 15 months duration. Request metrics can be used to track your S3 bucket usage in a more granular way. Additional charges apply for request metrics.

S3 CloudWatch Metrics

Data Transfer Metrics:

Data Transfer metrics can be used to monitor the performance of your bucket. Like request metrics, data transfer metrics are also available at 1-minute intervals and associate additional cost.

S3 CloudWatch Metrics

Note: Data transfer metrics also comes under request metrics and is enabled when you enable request metrics.

Next, we are going to view the storage metrics of an S3 bucket.

Prerequisite for this demo:

  • An S3 bucket with objects with more than 1 day age.

Step 1: Login to AWS console and click ‘S3’ located under Storage.

S3 CloudWatch Metrics

Step 2: Click on the bucket.

S3 CloudWatch Metrics

S3 CloudWatch Metrics

Note: Storage metrics collect data at an interval of 1 day. We had already created this bucket and objects inside it in advance (minimum 1 day in advance).

Warning: Additional charges apply for creating objects in S3 bucket.

Step 3: Navigate to ‘Metrics’ located under ‘Management’ and click ‘Storage’.

S3 CloudWatch Metrics

S3 CloudWatch Metrics

S3 CloudWatch Metrics

Note: Storage Metrics provides BucketSizeBytes and NumberOfObjects metrics to monitor your bucket usage in 1-day interval. The total size of all the objects in our bucket is 189 bytes and there are 5 objects stored inside it.

You can enable request metrics for your bucket by clicking on the edit sign beside your bucket name. We are going to cover request metrics in our CloudWatch blog series.

S3 CloudWatch Metrics

For more details on request metrics, please follow AWS S3 documentation

https://docs.aws.amazon.com/s3/index.html?id=docs_gateway#lang/en_us

To stop acquiring any cost, delete the buckets once the demo is completed.

S3 CloudWatch Metrics

Hope you have enjoyed this article, in the next blog post, we are going to discuss Bucket Policy in S3.

 

Leave a Reply

Close Menu