{"id":2532,"date":"2021-04-01T23:07:36","date_gmt":"2021-04-01T16:07:36","guid":{"rendered":"http:\/\/vticloud.io\/?p=2532"},"modified":"2021-09-20T09:42:53","modified_gmt":"2021-09-20T02:42:53","slug":"gioi-thieu-ve-amazon-cloudwatch-phan-1","status":"publish","type":"post","link":"https:\/\/vticloud.io\/en\/gioi-thieu-ve-amazon-cloudwatch-phan-1\/","title":{"rendered":"Amazon CloudWatch Introduction (Part 1)"},"content":{"rendered":"<p><\/p>\n<p data-pm-slice=\"1 1 []\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">Amazon CloudWatch is a product that provides services to ingest, store, and manage metrics.<\/span><\/p>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">There are sub-products that we discover elsewhere in the series such as CloudWatch Logs and CloudWatch Events.<\/span><\/p>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">It also provides CloudWatch Alarms and these react to metrics. An alarm can either be in the okay or the alarm state, and these can be configured to generate notifications if the data which these alarms monitor breaches the normal level, and this is based on criteria which either you provide or the system detects as anomalous.<\/span><\/p>\n<h3><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">Basic Fundamentals of Amazon CloudWatch<\/span><\/h3>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">There are some of the terms you need to understand before using CloudWatch:<\/span><\/p>\n<h3><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><strong>1. Namespace<\/strong> = container for metrics<\/span><\/h3>\n<p data-pm-slice=\"1 1 []\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">AWS use these for all the different AWS services, AWS services always start with AWS\/, and the namespace which you create won\u2019t.<\/span><\/p>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">Example: The EC2 namespace \u2013 AWS\/EC2; The Lambda namespace \u2013 AWS\/Lambda\u2026<\/span><\/p>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">Namespace will help separate metrics from different services or applications with the same name, so namespaces act as containers.<\/span><\/p>\n<div data-node-type=\"mediaSingle\" data-layout=\"center\" data-width=\"\">\n<div title=\"Attachment\" data-id=\"10631d2e-cd51-407c-92f8-505d8188dad7\" data-node-type=\"media\" data-type=\"file\" data-collection=\"contentId-1068630039\" data-width=\"1636\" data-height=\"529\" data-file-name=\"image-20210330-095726.png\" data-file-size=\"60467\" data-file-mime-type=\"image\/png\" data-context-id=\"1068630039\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><img loading=\"lazy\" class=\"alignnone wp-image-2533 size-full\" src=\"http:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/1.png\" alt=\"AWS Namespace\" width=\"1636\" height=\"529\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/1.png 1636w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/1-300x97.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/1-1024x331.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/1-768x248.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/1-1536x497.png 1536w\" sizes=\"(max-width: 1636px) 100vw, 1636px\" \/><\/span><\/div>\n<div title=\"Attachment\" data-id=\"10631d2e-cd51-407c-92f8-505d8188dad7\" data-node-type=\"media\" data-type=\"file\" data-collection=\"contentId-1068630039\" data-width=\"1636\" data-height=\"529\" data-file-name=\"image-20210330-095726.png\" data-file-size=\"60467\" data-file-mime-type=\"image\/png\" data-context-id=\"1068630039\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><img loading=\"lazy\" class=\"alignnone wp-image-2534 size-full\" src=\"http:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/2.png\" alt=\"AWS Namespace\" width=\"1637\" height=\"527\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/2.png 1637w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/2-300x97.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/2-1024x330.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/2-768x247.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/2-1536x494.png 1536w\" sizes=\"(max-width: 1637px) 100vw, 1637px\" \/><\/span><\/div>\n<div title=\"Attachment\" data-id=\"10631d2e-cd51-407c-92f8-505d8188dad7\" data-node-type=\"media\" data-type=\"file\" data-collection=\"contentId-1068630039\" data-width=\"1636\" data-height=\"529\" data-file-name=\"image-20210330-095726.png\" data-file-size=\"60467\" data-file-mime-type=\"image\/png\" data-context-id=\"1068630039\">\u00a0<\/div>\n<\/div>\n<div data-node-type=\"mediaSingle\" data-layout=\"center\" data-width=\"\">\n<h3 title=\"Attachment\" data-id=\"f333d709-03eb-48fe-8dfe-b65a40a740b6\" data-node-type=\"media\" data-type=\"file\" data-collection=\"contentId-1068630039\" data-width=\"1637\" data-height=\"527\" data-file-name=\"image-20210330-095808.png\" data-file-size=\"55681\" data-file-mime-type=\"image\/png\" data-context-id=\"1068630039\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><strong>2.<\/strong> <strong>Datapoint &amp; Timestamp<\/strong><\/span><\/h3>\n<\/div>\n<p data-pm-slice=\"1 1 []\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">A Timestamp represents the date and time when the value was taken.<\/span><\/p>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">Datapoint are the individual points of data that CloudWatch recorded and managed.<\/span><\/p>\n<div data-node-type=\"mediaSingle\" data-layout=\"center\" data-width=\"\">\n<div title=\"Attachment\" data-id=\"65f3123d-c33e-4384-979d-958bee76d91b\" data-node-type=\"media\" data-type=\"file\" data-collection=\"contentId-1068630039\" data-width=\"1632\" data-height=\"310\" data-file-name=\"image-20210330-095950.png\" data-file-size=\"45107\" data-file-mime-type=\"image\/png\" data-context-id=\"1068630039\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><img loading=\"lazy\" class=\"alignnone wp-image-2535 size-full\" src=\"http:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/3.png\" alt=\"Amazon CloudWatch Datapoint &amp; Timestamp\" width=\"1632\" height=\"310\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/3.png 1632w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/3-300x57.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/3-1024x195.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/3-768x146.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/3-1536x292.png 1536w\" sizes=\"(max-width: 1632px) 100vw, 1632px\" \/><\/span><\/div>\n<div title=\"Attachment\" data-id=\"65f3123d-c33e-4384-979d-958bee76d91b\" data-node-type=\"media\" data-type=\"file\" data-collection=\"contentId-1068630039\" data-width=\"1632\" data-height=\"310\" data-file-name=\"image-20210330-095950.png\" data-file-size=\"45107\" data-file-mime-type=\"image\/png\" data-context-id=\"1068630039\">\u00a0<\/div>\n<\/div>\n<h3><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><strong>3. Metric <\/strong>= time ordered set of Datapoints<\/span><\/h3>\n<div data-node-type=\"mediaSingle\" data-layout=\"center\" data-width=\"\">\n<div title=\"Attachment\" data-id=\"bafbce32-0daa-4291-9fda-4d7710f31e3e\" data-node-type=\"media\" data-type=\"file\" data-collection=\"contentId-1068630039\" data-width=\"1661\" data-height=\"493\" data-file-name=\"image-20210330-100047.png\" data-file-size=\"77408\" data-file-mime-type=\"image\/png\" data-context-id=\"1068630039\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><img loading=\"lazy\" class=\"alignnone wp-image-2536 size-full\" src=\"http:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/4.png\" alt=\"Amazon CloudWatch Metrics\" width=\"1661\" height=\"493\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/4.png 1661w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/4-300x89.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/4-1024x304.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/4-768x228.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/4-1536x456.png 1536w\" sizes=\"(max-width: 1661px) 100vw, 1661px\" \/><\/span><\/div>\n<div title=\"Attachment\" data-id=\"bafbce32-0daa-4291-9fda-4d7710f31e3e\" data-node-type=\"media\" data-type=\"file\" data-collection=\"contentId-1068630039\" data-width=\"1661\" data-height=\"493\" data-file-name=\"image-20210330-100047.png\" data-file-size=\"77408\" data-file-mime-type=\"image\/png\" data-context-id=\"1068630039\">\u00a0<\/div>\n<\/div>\n<h3><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><strong>4. Dimension <\/strong>= name\/value pair<\/span><\/h3>\n<p data-pm-slice=\"1 1 []\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">Example of a metric has MetricName (CPUUtilization) and a Namespace (AWS\/EC2\/Per-Instance Metrics) to identify metrics, it would get pretty messy that we couldn\u2019t separate datapoints for different EC2 instances.<\/span><\/p>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">So Dimension comes in really handy, it is a name\/value pair which is provided when you add datapoints into CloudWatch, and is the way that the CPUUtilization metric for EC2 differentiate between instances.<\/span><\/p>\n<div data-node-type=\"mediaSingle\" data-layout=\"center\" data-width=\"\">\n<div title=\"Attachment\" data-id=\"88302303-fca6-438e-b18c-672f4d118aa7\" data-node-type=\"media\" data-type=\"file\" data-collection=\"contentId-1068630039\" data-width=\"1637\" data-height=\"291\" data-file-name=\"image-20210330-101349.png\" data-file-size=\"62627\" data-file-mime-type=\"image\/png\" data-context-id=\"1068630039\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><img loading=\"lazy\" class=\"alignnone wp-image-2537 size-full\" src=\"http:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/5.png\" alt=\"Amazon CloudWatch Dimension\" width=\"1637\" height=\"291\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/5.png 1637w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/5-300x53.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/5-1024x182.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/5-768x137.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/5-1536x273.png 1536w\" sizes=\"(max-width: 1637px) 100vw, 1637px\" \/><\/span><\/div>\n<\/div>\n<p data-pm-slice=\"1 1 []\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">Name\/value pair in this sample is InstanceId\/InstanceId Value<\/span><\/p>\n<h3><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><strong>5. Statistic <\/strong>= aggregation over a period<\/span><\/h3>\n<p data-pm-slice=\"1 1 []\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">This is the way that you can take data which occurs over a period and aggregate it in a certain way.<\/span><\/p>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">For example, we have 60-second resolution for CPUUtilization and we want to view the Min, Max, Average values over five-minutes periods, then you can do that using statistics.<\/span><\/p>\n<div data-node-type=\"mediaSingle\" data-layout=\"center\" data-width=\"\">\n<div title=\"Attachment\" data-id=\"0beb1e75-e149-4f16-8f86-83c51ee4422e\" data-node-type=\"media\" data-type=\"file\" data-collection=\"contentId-1068630039\" data-width=\"1659\" data-height=\"783\" data-file-name=\"image-20210330-102403.png\" data-file-size=\"92306\" data-file-mime-type=\"image\/png\" data-context-id=\"1068630039\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><img loading=\"lazy\" class=\"alignnone wp-image-2538 size-full\" src=\"http:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/6.png\" alt=\"Amazon CloudWatch Statistic\" width=\"1659\" height=\"783\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/6.png 1659w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/6-300x142.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/6-1024x483.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/6-768x362.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/6-1536x725.png 1536w\" sizes=\"(max-width: 1659px) 100vw, 1659px\" \/><\/span><\/div>\n<div title=\"Attachment\" data-id=\"0beb1e75-e149-4f16-8f86-83c51ee4422e\" data-node-type=\"media\" data-type=\"file\" data-collection=\"contentId-1068630039\" data-width=\"1659\" data-height=\"783\" data-file-name=\"image-20210330-102403.png\" data-file-size=\"92306\" data-file-mime-type=\"image\/png\" data-context-id=\"1068630039\">\u00a0<\/div>\n<\/div>\n<h3><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><strong>6. Percentile <\/strong>= the relative standing of a value<\/span><\/h3>\n<p data-pm-slice=\"1 1 []\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">The percentile indicates the relative standing of a value in a dataset. If we have 95<sup>th<\/sup> percentile, this mean that 95% of the data is lower than this value, and 5% is higher than this value. It provide better understanding of the distribution of your metric data and help us eliminate outliers.<\/span><\/p>\n<div data-node-type=\"mediaSingle\" data-layout=\"center\" data-width=\"\">\n<div title=\"Attachment\" data-id=\"a9a1a343-f239-4df3-9021-abb9d4ede415\" data-node-type=\"media\" data-type=\"file\" data-collection=\"contentId-1068630039\" data-width=\"1645\" data-height=\"449\" data-file-name=\"image-20210330-102514.png\" data-file-size=\"67251\" data-file-mime-type=\"image\/png\" data-context-id=\"1068630039\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><img loading=\"lazy\" class=\"alignnone wp-image-2539 size-full\" src=\"http:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/7.png\" alt=\"Amazon CloudWatch Percentile\" width=\"1645\" height=\"449\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/7.png 1645w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/7-300x82.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/7-1024x279.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/7-768x210.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/04\/7-1536x419.png 1536w\" sizes=\"(max-width: 1645px) 100vw, 1645px\" \/><\/span><\/div>\n<\/div>\n<p data-pm-slice=\"1 1 []\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">Now when you publish datapoints into CloudWatch, you do so with a certain resolution. Metric produced by AWS services use standard resolution, they have a 60-second granularity.<\/span><\/p>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">CloudWatch retains data for a certain period of time, for the resolution:<\/span><\/p>\n<ul class=\"ak-ul\">\n<li>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">less than 60s, the data is retained for 3 hours<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">more than 60s,the data is retained for 15 days<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">more than 300s, the data is retained for 63 days<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">more than 3600s, the data is retained for 455 days<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">We can see that as data ages (455 days), the detail matters less and less (&gt;3600s). And it would be more expensive if the resolution getting lower (&lt;60s).<\/span><\/p>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">In Part 1 of this topic, we discussed some basic concepts of Amazon CloudWatch that we need to know before get your hand on this service in Part 2 with VTI Cloud.<\/span><\/p>\n<p><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><a href=\"https:\/\/vticloud.io\/en\/gioi-thieu-ve-amazon-cloudwatch-phan-2\/\">Amazon CloudWatch Introduction (Part 2) | VTI CLOUD<\/a><\/span><\/p>\n<h2>\u00a0<\/h2>\n<h2><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">About VTI Cloud<\/span><\/h2>\n<p data-renderer-start-pos=\"6835\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\"><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><\/span><\/p>\n<p data-renderer-start-pos=\"7217\"><span style=\"font-family: BaiJamjuree-Regular, sans-serif;\">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.<\/span><\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Amazon CloudWatch is a product that provides services to ingest, store, and manage metrics. There are sub-products that we discover elsewhere in the series such as CloudWatch Logs and CloudWatch Events. It also provides CloudWatch Alarms and these react to metrics. An alarm can either be in the okay or the alarm state, and these [&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\/2532"}],"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=2532"}],"version-history":[{"count":1,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/posts\/2532\/revisions"}],"predecessor-version":[{"id":3162,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/posts\/2532\/revisions\/3162"}],"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=2532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/categories?post=2532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/tags?post=2532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}