{"id":47534,"date":"2018-01-07T05:30:06","date_gmt":"2018-01-07T00:00:06","guid":{"rendered":"http:\/\/blog.odango.com\/?p=47534"},"modified":"2023-02-04T09:40:13","modified_gmt":"2023-02-04T04:10:13","slug":"aws-cloudwatch-api-guide","status":"publish","type":"post","link":"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/","title":{"rendered":"AWS CloudWatch API Guide &#8211; 2018"},"content":{"rendered":"\n[et_pb_section bb_built=&#8221;1&#8243; next_background_color=&#8221;#000000&#8243;][et_pb_row][et_pb_column type=&#8221;4_4&#8243;][et_pb_post_title _builder_version=&#8221;3.0.105&#8243; title=&#8221;on&#8221; meta=&#8221;off&#8221; author=&#8221;on&#8221; date=&#8221;on&#8221; categories=&#8221;on&#8221; comments=&#8221;on&#8221; featured_image=&#8221;off&#8221; featured_placement=&#8221;below&#8221; text_color=&#8221;dark&#8221; text_background=&#8221;off&#8221; title_font=&#8221;Source Sans Pro||||||||&#8221; title_font_size=&#8221;47&#8243; title_font_size_tablet=&#8221;40&#8243; title_font_size_phone=&#8221;35&#8243; title_font_size_last_edited=&#8221;on|desktop&#8221; title_text_color=&#8221;rgba(0,0,0,0.8)&#8221; title_text_align=&#8221;left&#8221; text_shadow_horizontal_length=&#8221;0.08em&#8221; text_shadow_vertical_length=&#8221;0.08em&#8221; text_shadow_blur_strength=&#8221;0.08em&#8221; title_text_shadow_horizontal_length=&#8221;0.08em&#8221; title_text_shadow_vertical_length=&#8221;0.08em&#8221; text_orientation=&#8221;center&#8221; custom_margin=&#8221;|||10%&#8221; \/][\/et_pb_column][\/et_pb_row][et_pb_row][et_pb_column type=&#8221;4_4&#8243;][et_pb_text _builder_version=&#8221;3.12.2&#8243; text_font=&#8221;Titillium Web|300|||||||&#8221; text_font_size=&#8221;20&#8243; text_font_size_last_edited=&#8221;on|desktop&#8221; text_text_color=&#8221;rgba(0,0,0,0.8)&#8221; text_line_height=&#8221;1.6em&#8221; max_width=&#8221;800px&#8221; custom_margin=&#8221;|||10%&#8221;]\r\n\r\n<p>\r\n<strong>What you need to know about AWS Cloud Watch:-<\/strong><\/p>\r\n<p><a href=\"https:\/\/asha24.net\/blog\/aws-cli-guide-best-practice\/\">AWS<\/a> Cloud Watch is a monitoring tool offered by Amazon primarily to monitor other services like EC2, S3, RDS, etc. To work with Cloud Watch we first have to create instances using EC2.<\/p>\r\n<p>The following ways are how you can monitor EC2 instances using Cloud Watch:-<\/p>\r\n<p><strong>(1) Check status of instance<\/strong><\/p>\r\n<p>Go to\u00a0<strong>-&gt;<\/strong>\u00a0AWS dashboard\u00a0<strong>-&gt;<\/strong>\u00a0EC2\u00a0<strong>-&gt;<\/strong>\u00a0select any instance<strong>\u00a0-&gt;<\/strong>\u00a0click on monitoring (it will show you various aspects of that particular instance). It\u2019s a basic monitoring we can see the monitoring metrics for every 5 minutes.<\/p>\r\n<p>Cloud Watch monitor has several metrics like the one shown below:-<\/p>\r\n\r\n[\/et_pb_text][et_pb_image _builder_version=&#8221;3.17.6&#8243; src=&#8221;https:\/\/asha24.net\/blog\/\/wp-content\/uploads\/2018\/03\/download-69.png&#8221; align=&#8221;center&#8221; max_width=&#8221;80%&#8221; module_alignment=&#8221;center&#8221; \/][et_pb_text _builder_version=&#8221;3.12.2&#8243; text_font=&#8221;Titillium Web|300|||||||&#8221; text_font_size=&#8221;20&#8243; text_font_size_last_edited=&#8221;on|desktop&#8221; text_text_color=&#8221;rgba(0,0,0,0.8)&#8221; text_line_height=&#8221;1.6em&#8221; max_width=&#8221;800px&#8221; custom_margin=&#8221;|||10%&#8221;]\r\n\r\n<p>\r\n<strong>(2)\u00a0<\/strong>View detail monitoring<\/p>\r\n<p>Go to\u00a0<strong>-&gt;<\/strong>\u00a0AWS dashboard\u00a0<strong>-&gt;<\/strong>\u00a0EC2\u00a0<strong>-&gt;<\/strong>\u00a0select any instance\u00a0<strong>-&gt;<\/strong>\u00a0detail monitoring.<\/p>\r\n<p>We have to enable this detailed monitoring manually.<\/p>\r\n<p>This is a chargeable service, unlike other free <a href=\"https:\/\/en.wikipedia.org\/wiki\/Amazon_Web_Services\">AWS services<\/a>.<\/p>\r\n<p>It will monitor the metrics every 1 minute. The only difference between monitoring and detail monitoring is that the former works every 5 minutes and the latter every 1 minute.<\/p>\r\n<p><strong>Cloud Watch Console:<\/strong><\/p>\r\n<p><a href=\"https:\/\/aws.amazon.com\/cloudwatch\/\">Cloud watch<\/a> console provides several metrics, such as EBS, EC2, EFS, RDS, and S3. I have specified some for you in the picture below:<\/p>\r\n<p><strong>(1) Metrics:<\/strong><\/p>\r\n\r\n[\/et_pb_text][et_pb_image _builder_version=&#8221;3.17.6&#8243; src=&#8221;https:\/\/asha24.net\/blog\/\/wp-content\/uploads\/2018\/03\/download-70.png&#8221; align=&#8221;center&#8221; \/][et_pb_text _builder_version=&#8221;3.12.2&#8243; text_font=&#8221;Titillium Web|300|||||||&#8221; text_font_size=&#8221;20&#8243; text_font_size_last_edited=&#8221;on|desktop&#8221; text_text_color=&#8221;rgba(0,0,0,0.8)&#8221; text_line_height=&#8221;1.6em&#8221; max_width=&#8221;800px&#8221; custom_margin=&#8221;|||10%&#8221; text_text_shadow_vertical_length=&#8221;0.08em&#8221;]\r\n\r\n<p>\r\nAfter selecting a particular metric we check the data and copy the URL link.<\/p>\r\n<p>We can also get the data based on time period is I\u2019ve shown in the picture below:<\/p>\r\n\r\n[\/et_pb_text][et_pb_image _builder_version=&#8221;3.17.6&#8243; src=&#8221;https:\/\/asha24.net\/blog\/\/wp-content\/uploads\/2018\/03\/download-71.png&#8221; align=&#8221;center&#8221; \/][et_pb_text _builder_version=&#8221;3.12.2&#8243; text_font=&#8221;Titillium Web|300|||||||&#8221; text_font_size=&#8221;20&#8243; text_font_size_last_edited=&#8221;on|desktop&#8221; text_text_color=&#8221;rgba(0,0,0,0.8)&#8221; text_line_height=&#8221;1.6em&#8221; max_width=&#8221;800px&#8221; custom_margin=&#8221;|||10%&#8221;]\r\n\r\n<p>\r\nAfter selecting the metrics, you can set two types of alerts<\/p>\r\n<p><strong>2) Alarm:<\/strong>\u00a0An alarm is set in before exceeding the threshold.<\/p>\r\n<p>Alarm\u00a0<strong>-&gt;<\/strong>\u00a0Create Alarm\u00a0<strong>-&gt;<\/strong>\u00a0Select Metrics\u00a0<strong>-&gt;<\/strong>\u00a0Select specific part\u00a0<strong>-&gt;<\/strong>\u00a0Give Stranded name<\/p>\r\n<p>The two types of action involved here are:-<\/p>\r\n<p><strong>a)\u00a0<\/strong>Mail generated action<\/p>\r\n<p><strong>b)\u00a0<\/strong>Terminate the particular instance when it reaches the time limit<\/p>\r\n<p><strong>c)\u00a0<\/strong>Set billing Alerts:<\/p>\r\n<p>Go to My account session\u00a0<strong>-&gt;<\/strong>\u00a0Preferences\u00a0<strong>-&gt;<\/strong>\u00a0Enable Receiving billing alerts<\/p>\r\n\r\n[\/et_pb_text][et_pb_image _builder_version=&#8221;3.17.6&#8243; src=&#8221;https:\/\/asha24.net\/blog\/\/wp-content\/uploads\/2018\/03\/download-72.png&#8221; align=&#8221;center&#8221; max_width=&#8221;81%&#8221; module_alignment=&#8221;center&#8221; \/][et_pb_text _builder_version=&#8221;3.12.2&#8243; text_font=&#8221;Titillium Web|300|||||||&#8221; text_font_size=&#8221;20&#8243; text_font_size_last_edited=&#8221;on|desktop&#8221; text_text_color=&#8221;rgba(0,0,0,0.8)&#8221; text_line_height=&#8221;1.6em&#8221; max_width=&#8221;800px&#8221; custom_margin=&#8221;|||10%&#8221;]\r\n\r\n<p>\r\nWe will be able to get the billing alerts at alarm dashboard once we select the metric. You just have to create the alarm threshold with name, description and action.<\/p>\r\n<p>In area description, you have to mention the threshold limit (for e.g. if billing is more than 5$).<\/p>\r\n<p>Under \u201cwhenever: Cass Server Count\u201d give value (e.g. 5$, same as threshold limit)<\/p>\r\n<p><strong>Actions:<\/strong><\/p>\r\n<p><strong>(1)\u00a0<\/strong>Under \u201cWhenever this Alarm\u201d select \u201cState is alarm\u201d<\/p>\r\n<p><strong>(2)\u00a0<\/strong>Under\u00a0 \u201dSend notification to\u201d select \u201cNotify Me\u201d<\/p>\r\n<p><strong>(3)\u00a0<\/strong>Under \u201cEmail List\u201d give your Mail Id.<\/p>\r\n<p>Whenever threshold limit is reached (e.g. beyond 5$) you will be notified via email you configured.<\/p>\r\n<p>The diagram below shows you the complete setup:<\/p>\r\n\r\n[\/et_pb_text][et_pb_image _builder_version=&#8221;3.17.6&#8243; src=&#8221;https:\/\/asha24.net\/blog\/\/wp-content\/uploads\/2018\/03\/download-73.png&#8221; align=&#8221;center&#8221; \/][et_pb_text _builder_version=&#8221;3.12.2&#8243;]\r\n\r\n<p style=\"text-align: center;\"><a href='https:\/\/asha24.net\/aws-certification-training' class='big-button bigblue'><span style=\"color: #ffffff;\"><strong>Enroll for AWS Training &amp; Certification Course<\/strong><\/span><\/a><\/p>\r\n\r\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section bb_built=&#8221;1&#8243; prev_background_color=&#8221;#000000&#8243;][et_pb_row][et_pb_column type=&#8221;4_4&#8243;][et_pb_team_member _builder_version=&#8221;3.0.106&#8243; name=&#8221;Mahesh J&#8221; position=&#8221;Author&#8221; facebook_url=&#8221;&#8221; twitter_url=&#8221;&#8221; google_url=&#8221;&#8221; linkedin_url=&#8221;&#8221; image_url=&#8221;https:\/\/asha24.net\/blog\/\/wp-content\/uploads\/2018\/03\/123.gif&#8221; background_layout=&#8221;light&#8221; header_font=&#8221;Titillium Web|700|||||||&#8221; body_font=&#8221;Titillium Web||||||||&#8221; body_font_size=&#8221;16&#8243;]\r\n\r\n<p>\r\nHello all! I\u2019m a nature\u2019s child, who loves the wild, bringing technical knowledge to you restyled.<\/p>\r\n\r\n[\/et_pb_team_member][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":47543,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[28],"tags":[],"class_list":["post-47534","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AWS CloudWatch API Guide (A step by step Guide)<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AWS CloudWatch API Guide (A step by step Guide)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Asha24 Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-07T00:00:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-04T04:10:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aws-cloudwatch-api-guide-20183.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"640\" \/>\n\t<meta property=\"og:image:height\" content=\"344\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mahesh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/asha24.net\/blog\/#website\",\"url\":\"https:\/\/asha24.net\/blog\/\",\"name\":\"Asha24 Blog\",\"description\":\"Dedication Towards Learning\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/asha24.net\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aws-cloudwatch-api-guide-20183.jpg\",\"contentUrl\":\"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aws-cloudwatch-api-guide-20183.jpg\",\"width\":640,\"height\":344},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/#webpage\",\"url\":\"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/\",\"name\":\"AWS CloudWatch API Guide (A step by step Guide)\",\"isPartOf\":{\"@id\":\"https:\/\/asha24.net\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/#primaryimage\"},\"datePublished\":\"2018-01-07T00:00:06+00:00\",\"dateModified\":\"2023-02-04T04:10:13+00:00\",\"author\":{\"@id\":\"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759\"},\"breadcrumb\":{\"@id\":\"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/asha24.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS CloudWatch API Guide &#8211; 2018\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759\",\"name\":\"Mahesh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/asha24.net\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g\",\"caption\":\"Mahesh\"},\"url\":\"https:\/\/asha24.net\/blog\/author\/mahesh\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AWS CloudWatch API Guide (A step by step Guide)","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/","og_locale":"en_US","og_type":"article","og_title":"AWS CloudWatch API Guide (A step by step Guide)","og_url":"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/","og_site_name":"Asha24 Blog","article_published_time":"2018-01-07T00:00:06+00:00","article_modified_time":"2023-02-04T04:10:13+00:00","og_image":[{"width":640,"height":344,"url":"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aws-cloudwatch-api-guide-20183.jpg","path":"\/home\/reviews981\/public_html\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aws-cloudwatch-api-guide-20183.jpg","size":"full","id":47543,"alt":"","pixels":220160,"type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mahesh","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/asha24.net\/blog\/#website","url":"https:\/\/asha24.net\/blog\/","name":"Asha24 Blog","description":"Dedication Towards Learning","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/asha24.net\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/#primaryimage","inLanguage":"en-US","url":"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aws-cloudwatch-api-guide-20183.jpg","contentUrl":"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aws-cloudwatch-api-guide-20183.jpg","width":640,"height":344},{"@type":"WebPage","@id":"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/#webpage","url":"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/","name":"AWS CloudWatch API Guide (A step by step Guide)","isPartOf":{"@id":"https:\/\/asha24.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/#primaryimage"},"datePublished":"2018-01-07T00:00:06+00:00","dateModified":"2023-02-04T04:10:13+00:00","author":{"@id":"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759"},"breadcrumb":{"@id":"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/asha24.net\/blog\/aws-cloudwatch-api-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/asha24.net\/blog\/"},{"@type":"ListItem","position":2,"name":"AWS CloudWatch API Guide &#8211; 2018"}]},{"@type":"Person","@id":"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759","name":"Mahesh","image":{"@type":"ImageObject","@id":"https:\/\/asha24.net\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g","caption":"Mahesh"},"url":"https:\/\/asha24.net\/blog\/author\/mahesh\/"}]}},"_links":{"self":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts\/47534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/comments?post=47534"}],"version-history":[{"count":15,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts\/47534\/revisions"}],"predecessor-version":[{"id":52217,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts\/47534\/revisions\/52217"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/media\/47543"}],"wp:attachment":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/media?parent=47534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/categories?post=47534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/tags?post=47534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}