S3 BytesUploaded, BytesDownloaded metrics are not recorded in CloudWatch

0

Hi,

I have a S3 bucket to which files are being uploaded by a Kafka sink connector. I am trying to setup a monitoring dashboard for this S3 bucket. However, I could only find BucketSizeBytes and NumberOfObjects metrics in CloudWatch but not request metrics like BytesUploaded, BytesDownloaded. Metrics seems to be enabled by default since BucketSizeBytes and NumberOfObjects metrics are being recorded already. Is there any extra configuration I need to do to get request metrics reported in CloudWatch.

Thank you for your time.

Thank you, Sreeni

Sreeni
asked a year ago1096 views
1 Answer
1

Hello! You need to opt in to request metrics in the console, via the REST API, or via the AWS CLI. To opt in to request metrics for S3 using the console, you need to do the following:

  1. Sign in to the AWS Management Console and open the Amazon S3 console.
  2. In the Buckets list, choose the name of the bucket that contains the objects you want request metrics for.
  3. Choose the Metrics tab.
  4. Under Bucket metrics, choose View additional charts.
  5. Choose the Request metrics tab.
  6. Choose Create filter.
  7. In the Filter name box, enter your filter name. NOTE: Names can only contain letters, numbers, periods, dashes, and underscores. We recommend using the name EntireBucket for a filter that applies to all objects.
  8. Under Filter scope, choose This filter applies to all objects in the bucket. (You can also define a filter so that the metrics are only collected and reported on a subset of objects in the bucket. For more information, see Creating a metrics configuration that filters by prefix, object tag, or access point.)
  9. Choose Save changes.
  10. On the Request metrics tab, under Filters, choose the filter that you just created.
  11. After about 15 minutes, CloudWatch begins tracking these request metrics. You can see them on the Request metrics tab. You can see graphs for the metrics on the Amazon S3 or CloudWatch console.

For more information or alternative ways of opting in via the REST API or AWS CLI, see Creating a CloudWatch metrics configuration for all the objects in your bucket. It's also helpful to be aware of the CloudWatch metrics configurations and considerations.

Hope this helps!

profile pictureAWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions