{"id":1881,"date":"2021-04-01T23:20:32","date_gmt":"2021-04-01T16:20:32","guid":{"rendered":"https:\/\/vticloud.io\/?p=1881"},"modified":"2021-09-20T09:51:02","modified_gmt":"2021-09-20T02:51:02","slug":"gioi-thieu-ve-amazon-cloudwatch-phan-2","status":"publish","type":"post","link":"https:\/\/vticloud.io\/en\/gioi-thieu-ve-amazon-cloudwatch-phan-2\/","title":{"rendered":"Amazon CloudWatch Introduction (Part 2)"},"content":{"rendered":"<p><\/p>\n<p data-renderer-start-pos=\"3\">As mentioned in Part 2, Amazon CloudWatch is a monitoring service to monitor your AWS resources, as well as the applications that you run on AWS.<\/p>\n<p data-renderer-start-pos=\"3\">Read more: <a href=\"https:\/\/vticloud.io\/en\/gioi-thieu-ve-amazon-cloudwatch-phan-1\/\">Amazon CloudWatch Introduction (Part 1) | VTI CLOUD<\/a><\/p>\n<p data-renderer-start-pos=\"3\">Basically, it can monitor things like:<\/p>\n<table style=\"height: 96px; width: 79.913%; border-collapse: collapse; border-style: solid; border-color: #000000;\" border=\"1\">\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"width: 36.0044%; height: 24px;\"><strong>Compute<\/strong><\/td>\n<td style=\"width: 43.9086%; height: 24px;\"><strong data-renderer-mark=\"true\">Storage &amp;\u00a0Content Delivery<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 36.0044%; height: 24px;\">\n<p data-renderer-start-pos=\"223\">+ Autoscaling Groups<\/p>\n<p data-renderer-start-pos=\"245\">+ Elastic Load Balancers<\/p>\n<p data-renderer-start-pos=\"271\">+ Route53 Health Checks<\/p>\n<\/td>\n<td style=\"width: 43.9086%; height: 24px;\">\n<p data-renderer-start-pos=\"298\">+ EBS Volume<\/p>\n<p data-renderer-start-pos=\"312\">+ Storage Gateways<\/p>\n<p data-renderer-start-pos=\"332\">+ CloudFront<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 36.0044%; height: 24px;\"><strong data-renderer-mark=\"true\">Database &amp; Analytics<\/strong><\/td>\n<td style=\"width: 43.9086%; height: 24px;\"><strong data-renderer-mark=\"true\">Others<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 36.0044%; height: 24px;\">\n<p data-renderer-start-pos=\"384\">+ DynamoDB<\/p>\n<p data-renderer-start-pos=\"396\">+ Elasticache Nodes<\/p>\n<p data-renderer-start-pos=\"417\">+ RDS Instance<\/p>\n<p data-renderer-start-pos=\"433\">+ Redshift<\/p>\n<\/td>\n<td style=\"width: 43.9086%; height: 24px;\">\n<p data-renderer-start-pos=\"447\">+ SNS Topics<\/p>\n<p data-renderer-start-pos=\"461\">+ SQS Queues<\/p>\n<p data-renderer-start-pos=\"475\">+ CloudWatch Logs<\/p>\n<p data-renderer-start-pos=\"494\">+ Estimated Charges on your AWS Bill<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 data-renderer-start-pos=\"532\">\u00a0<\/h2>\n<h2 data-renderer-start-pos=\"532\">Amazon CloudWatch Metrics<\/h2>\n<p data-renderer-start-pos=\"532\">By default, CloudWatch monitors these metrics for your instance:<\/p>\n<ul class=\"ak-ul\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"604\">Instance metrics (CPU Utilization\/Disk IOPS\/Network In-Out&#8230;)<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"670\">CPU credit metrics (CPUCreditUsage\/Balance&#8230;)<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"720\">Amazon EBS metrics for Nitro-based instances (EBS Read\/Write IOPS)<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"790\">Status check metrics<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"814\">Traffic mirroring metrics<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"843\">Amazon EC2 metric dimensions<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"875\">Amazon EC2 usage metrics (ResourceCount)<\/p>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-1883 size-full\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/1-1.png\" alt=\"Amazon CloudWatch Metrics\" width=\"1564\" height=\"871\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/1-1.png 1564w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/1-1-300x167.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/1-1-1024x570.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/1-1-768x428.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/1-1-1536x855.png 1536w\" sizes=\"(max-width: 1564px) 100vw, 1564px\" \/><\/p>\n<p style=\"text-align: center;\">(Illustration for some metrics)<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-1882 size-full\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/1.jpg\" alt=\"Amazon CloudWatch Metrics\" width=\"1920\" height=\"923\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/1.jpg 1920w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/1-300x144.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/1-1024x492.jpg 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/1-768x369.jpg 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/1-1536x738.jpg 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p data-renderer-start-pos=\"956\">What it can\u2019t monitor are things like: the storage space left or available, the RAM Utilization\u2026 or anything else that falls out of the default Metrics provided by Amazon CloudWatch, we called them Custom Metrics. Custome Metrics is defined and published to CloudWatch by the user.<\/p>\n<h2 data-renderer-start-pos=\"532\">\u00a0<\/h2>\n<h2 data-renderer-start-pos=\"532\">Amazon CloudWatch Logs<\/h2>\n<p data-renderer-start-pos=\"1207\">Also, it is important to understand that you can store your log data in CloudWatch Logs for as long as you want. By default, CloudWatch Logs will store your log data indefinitely, you can change the retention for each Log Group at any time, example: For EBS, you only want data for the last two weeks but all the back to six months for EC2 Instances.<\/p>\n<p data-renderer-start-pos=\"1207\"><img loading=\"lazy\" class=\"alignnone wp-image-1884 size-full\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/2-1.png\" alt=\"Amazon CloudWatch Retention\" width=\"1592\" height=\"902\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/2-1.png 1592w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/2-1-300x170.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/2-1-1024x580.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/2-1-768x435.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/2-1-1536x870.png 1536w\" sizes=\"(max-width: 1592px) 100vw, 1592px\" \/><\/p>\n<p data-renderer-start-pos=\"1472\">One more thing to keep in mind is you can retrieve data from any terminated EC2 or ELB Instance or any AWS Services after its termination.<\/p>\n<p data-renderer-start-pos=\"1580\">\u00a0<\/p>\n<p data-renderer-start-pos=\"5051\">In terms of Metric granularity, it depends on what kind of metrics you are using. By default, it is 5-minute intervals for Default metrics and 1-minute intervals for Custom metrics.<\/p>\n<p data-renderer-start-pos=\"5234\">You will get Basic monitoring and Detailed monitoring for Default Metrics.<\/p>\n<p data-renderer-start-pos=\"5312\">Basic monitoring is every 5 minutes, Detailed monitoring is every 1 minute.<\/p>\n<p data-renderer-start-pos=\"5389\">To enable detailed monitoring for an existing instance:<\/p>\n<ol class=\"ak-ol\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"2035\">Open the Amazon EC2 console<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2072\">In the navigation pane, choose Instances.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2114\">Select the instance, right-click and choose Monitor and Troubleshoot, Manage detailed monitoring.<br \/>\n<img loading=\"lazy\" class=\"alignnone wp-image-1885 size-full\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/3-1.png\" alt=\"CloudWatch Detailed Monitoring\" width=\"1848\" height=\"905\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/3-1.png 1848w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/3-1-300x147.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/3-1-1024x501.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/3-1-768x376.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/3-1-1536x752.png 1536w\" sizes=\"(max-width: 1848px) 100vw, 1848px\" \/><\/p>\n<\/li>\n<li>On the Detailed monitoring detail page, for Detailed monitoring, select the Enable check box.<\/li>\n<li>Choose Save, and be aware of <a href=\"https:\/\/aws.amazon.com\/cloudwatch\/pricing\/\">additional charges<\/a> that may apply.<br \/>\n<img loading=\"lazy\" class=\"alignnone wp-image-1886 size-full\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/4-1.png\" alt=\"CloudWatch Detailed Monitoring\" width=\"1151\" height=\"640\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/4-1.png 1151w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/4-1-300x167.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/4-1-1024x569.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/4-1-768x427.png 768w\" sizes=\"(max-width: 1151px) 100vw, 1151px\" \/><\/li>\n<\/ol>\n<p data-renderer-start-pos=\"2328\">For Custom Metrics, you will have Standard and High-Resolution monitoring.<\/p>\n<h2 data-renderer-start-pos=\"532\">\u00a0<\/h2>\n<h2 data-renderer-start-pos=\"532\">Amazon CloudWatch Alarms<\/h2>\n<p data-renderer-start-pos=\"2406\">In terms of Alarms, you can create an alarm to monitor any Amazon CloudWatch metrics in your account including CPU Utilization, ELB Latency, etc. You can set the appropriate thresholds in which to triggers the alarms;<\/p>\n<p data-renderer-start-pos=\"2406\"><img loading=\"lazy\" class=\"alignnone wp-image-1887 size-full\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/5-1.png\" alt=\"Amazon CloudWatch Alarms\" width=\"785\" height=\"891\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/5-1.png 785w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/5-1-264x300.png 264w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/5-1-768x872.png 768w\" sizes=\"(max-width: 785px) 100vw, 785px\" \/><\/p>\n<p data-renderer-start-pos=\"2406\">and also set what actions should be taken if an alarm state is reached. (tell it to send you an SNS notification or have it trigger a Lambda function and starts deleting your infrastructures).<\/p>\n<p data-renderer-start-pos=\"2406\"><img loading=\"lazy\" class=\"alignnone wp-image-1888 size-full\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/6-1.png\" alt=\"Amazon CloudWatch Alarms\" width=\"784\" height=\"633\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/6-1.png 784w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/6-1-300x242.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/02\/6-1-768x620.png 768w\" sizes=\"(max-width: 784px) 100vw, 784px\" \/><\/p>\n<p data-renderer-start-pos=\"6370\">And one thing you should definitely be aware of is that CloudWatch can be used on-premise as well. It\u2019s not restricted to just AWS resources. You can use this inside your own Data Center and have metrics being reported back to your CloudWatch Dashboard. The way to do this is you need to download and install the SSM agent, and then once that\u2019s installed you need to download and install the CloudWatch agent follow <a href=\"https:\/\/docs.aws.amazon.com\/AmazonCloudWatch\/latest\/monitoring\/install-CloudWatch-Agent-on-premise.html\">this guideline.<\/a><\/p>\n<p data-renderer-start-pos=\"3148\">\u00a0<\/p>\n<h2>About VTI Cloud<\/h2>\n<p data-renderer-start-pos=\"6835\"><strong data-renderer-mark=\"true\">VTI Cloud<\/strong>\u00a0is an\u00a0<span style=\"color: #ff6600;\"><a class=\"sc-iELTvK jHUAie\" style=\"color: #ff6600;\" title=\"https:\/\/vticloud.io\/news_events\/vti-cloud-chinh-thuc-tro-thanh-advanced-consulting-partner-cua-aws\/\" href=\"https:\/\/vticloud.io\/news_events\/vti-cloud-chinh-thuc-tro-thanh-advanced-consulting-partner-cua-aws\/\" data-renderer-mark=\"true\">Advanced Consulting Partner<\/a>\u00a0<\/span>of AWS Vietnam with a team of over 50+ AWS certified solution engineers. With the desire to support customers in the journey of digital transformation and migration to the AWS cloud, VTI Cloud is proud to be a pioneer in consulting solutions, developing software, and deploying AWS infrastructure to customers<strong data-renderer-mark=\"true\">\u00a0in Vietnam<\/strong>\u00a0<strong data-renderer-mark=\"true\">and Japan.<\/strong><\/p>\n<p data-renderer-start-pos=\"7217\">Building safe, high-performance, flexible, and cost-effective architectures for customers is\u00a0<strong data-renderer-mark=\"true\">VTI Cloud\u2019s<\/strong>\u00a0leading mission in enterprise technology mission.<\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>As mentioned in Part 2, Amazon CloudWatch is a monitoring service to monitor your AWS resources, as well as the applications that you run on AWS. Read more: Amazon CloudWatch Introduction (Part 1) | VTI CLOUD Basically, it can monitor things like: Compute Storage &amp;\u00a0Content Delivery + Autoscaling Groups + Elastic Load Balancers + Route53 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":1905,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[111,46,45,109],"_links":{"self":[{"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/posts\/1881"}],"collection":[{"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/comments?post=1881"}],"version-history":[{"count":1,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/posts\/1881\/revisions"}],"predecessor-version":[{"id":3163,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/posts\/1881\/revisions\/3163"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/media\/1905"}],"wp:attachment":[{"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/media?parent=1881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/categories?post=1881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/tags?post=1881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}