{"id":179484,"date":"2021-02-16T17:00:02","date_gmt":"2021-02-16T14:00:02","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-enable-and-view-request-metrics-for-an-aws-s3-bucket-in-cloudwatch-cloudsavvy-it\/"},"modified":"2021-02-16T17:00:02","modified_gmt":"2021-02-16T14:00:02","slug":"how-to-enable-and-view-request-metrics-for-an-aws-s3-bucket-in-cloudwatch-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-enable-and-view-request-metrics-for-an-aws-s3-bucket-in-cloudwatch-cloudsavvy-it\/","title":{"rendered":"#How To Enable And View Request Metrics for an AWS S3 Bucket in CloudWatch \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a3460758d0a9\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a3460758d0a9\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-enable-and-view-request-metrics-for-an-aws-s3-bucket-in-cloudwatch-cloudsavvy-it\/#Enabling_Metrics\" >Enabling Metrics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-enable-and-view-request-metrics-for-an-aws-s3-bucket-in-cloudwatch-cloudsavvy-it\/#Using_Metrics_in_CloudWatch\" >Using Metrics in CloudWatch<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How To Enable And View Request Metrics for an AWS S3 Bucket in CloudWatch \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5269\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/0eb3564906a864c93706b30eaca199af\/p\/uploads\/2020\/06\/e601b806.png\" alt=\"AWS Logo\" width=\"700\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>S3 comes with some basic analytics for bucket size and number of objects, which are free and calculated automatically. However, if you want to view more detailed analytics for S3 requests, you\u2019ll need to turn on request metrics.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Enabling_Metrics\"><\/span>Enabling Metrics<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In order to see request metrics, you\u2019ll need to enable them for each bucket. These aren\u2019t free like the default metrics \u2014 <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/cloudwatch\/pricing\/?tag=reviewgeek-20\">CloudWatch\u2019s Paid Tier costs $0.30 per metric<\/a>. Unfortunately, each S3 bucket can add up to 16 different request metrics, and they\u2019re all on all the time. This brings the cost to $5 per bucket, potentially less depending on whether or not you use certain options.<\/p>\n<p>To turn it on, head over to the Metrics tab for your bucket:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9573 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/f71d1b2f53fc5fce3c5903a7453609a8\/p\/uploads\/2021\/02\/5f884f91.png\" alt=\"bucket metrics\" width=\"700\" height=\"243\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll see the default metrics, and at the bottom, there\u2019s a \u201cView Additional Charts\u201d button:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9574 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/f285d24c423dec9d7930dcdce8a7709e\/p\/uploads\/2021\/02\/4d8a9f21.png\" alt=\"view additional charts\" width=\"700\" height=\"351\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Click \u201cCreate Filter\u201d to make a filter that will turn on request metrics.<\/p>\n<p>You can limit this to a specific subset of items, or just select \u201cThis filter <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>lies to all objects in the bucket.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9576 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/af000a2c43f2580a18d611bc0b63d3b4\/p\/uploads\/2021\/02\/6961fc89.png\" alt=\"create filter\" width=\"700\" height=\"528\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Once that\u2019s done, request metrics will start being shipped to CloudWatch. It may take a little bit, so grab a coffee and come back to it.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Using_Metrics_in_CloudWatch\"><\/span>Using Metrics in CloudWatch<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Head over to the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/redirect.viglink.com?u=https%3A%2F%2Fconsole.aws.amazon.com%2Fcloudwatch%2Fhome&amp;key=204a528a336ede4177fff0d84a044482\">CloudWatch Management Console<\/a>\u00a0to get started.<\/p>\n<p>You\u2019ll need to create a new Dashboard, and add a widget to it. You can choose any kind of graph, but for simple request metrics, line charts <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/general\/\" data-internallinksmanager029f6b8e52c=\"3\" title=\"General\" target=\"_blank\" rel=\"noopener\">general<\/a>ly work best.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9589\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/fc4b4a1e0e1ef51e38fec3a5ecaebe8a\/p\/uploads\/2021\/02\/705b364d.png\" alt=\"\" width=\"700\" height=\"193\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>For the metrics, select S3:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9590\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/262248e955044d5ea02ce14a9e4a92c4\/p\/uploads\/2021\/02\/95a04455.png\" alt=\"\" width=\"700\" height=\"387\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>And then \u201cRequest Metrics Per Filter.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9591\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/366d623da359fff682e67380352e2687\/p\/uploads\/2021\/02\/2323c03f.png\" alt=\"\" width=\"675\" height=\"191\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll then see a list of metrics available to you from the buckets you have request metrics enabled on. Two of the most useful are BytesDownloaded and BytesUploaded, which track raw data usage. You can graph them over time, and add this graph to your dashboard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9661\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/399986bc1bc24be38ee90ea65f988f22\/p\/uploads\/2021\/02\/ad382d4c.png\" alt=\"\" width=\"700\" height=\"371\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>By default, the graph shows the average data usage. You\u2019re probably interested in the total data usage, so under \u201cGraphed Metrics,\u201d you can change the statistic to \u201cSum,\u201d which will total up all requests for the given period. This works best when set to a long period, like an hour or day.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9662\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/c9a78b9fd16f39241c6a11bb980a5553\/p\/uploads\/2021\/02\/6ea21d7e.png\" alt=\"\" width=\"700\" height=\"251\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Of course, like all CloudWatch metrics, you can set up automated alarms for when usage gets unexpectedly high, and also use those alarms for other events in your account.\n<\/p><\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/9534\/how-to-enable-and-view-request-metrics-for-an-aws-s3-bucket-in-cloudwatch\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How To Enable And View Request Metrics for an AWS S3 Bucket in CloudWatch \u2013 CloudSavvy IT&#8221; S3 comes with some basic analytics for bucket size and number of objects, which are free and calculated automatically. However, if you want to view more detailed analytics for S3 requests, you\u2019ll need to turn on request metrics&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":179485,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/0eb3564906a864c93706b30eaca199af\/p\/uploads\/2020\/06\/e601b806.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-179484","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/179484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=179484"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/179484\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/179485"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=179484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=179484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=179484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}