{"id":2381,"date":"2017-02-24T14:50:06","date_gmt":"2017-02-24T20:50:06","guid":{"rendered":"http:\/\/www.mooreds.com\/wordpress\/?p=2381"},"modified":"2017-02-24T14:50:06","modified_gmt":"2017-02-24T20:50:06","slug":"aws-questions-cloudwatch","status":"publish","type":"post","link":"https:\/\/www.mooreds.com\/wordpress\/archives\/2381","title":{"rendered":"AWS Questions: Cloudwatch"},"content":{"rendered":"<p>Cloudwatch is Amazon&#8217;s <a href=\"https:\/\/aws.amazon.com\/cloudwatch\/\">monitoring and alerting service<\/a>.<\/p>\n<p>Some questions and answers re: this awesome service.<\/p>\n<ul>\n<li>How can you create custom metrics?\n<ul>\n<li>Cloudwatch doesn&#8217;t limit you to the metrics it collects by default (at the hypervisor level). \u00a0You can push any metric that makes sense up the the statistics repository, using <a href=\"http:\/\/docs.aws.amazon.com\/AmazonCloudWatch\/latest\/monitoring\/publishingMetrics.html\">custom metrics<\/a>.<\/li>\n<\/ul>\n<\/li>\n<li>What protocol does cloudwatch use? \u00a0ICMP or SNMP?\n<ul>\n<li>I couldn&#8217;t find a definitive answer. \u00a0For custom metrics, <a href=\"http:\/\/docs.aws.amazon.com\/AmazonCloudWatch\/latest\/APIReference\/Welcome.html\">use the api<\/a> as you would for any other AWS service. \u00a0Cloudwatch also\u00a0<a href=\"https:\/\/forums.aws.amazon.com\/message.jspa?messageID=403578lin\">gathers metrics from the hypervisor and the host machine<\/a>.<\/li>\n<\/ul>\n<\/li>\n<li>What are cloudwatch logs?\n<ul>\n<li>A way for you to push logfiles from ec2 instances up to Cloudwatch, parse them, and create metrics out of them (&#8220;how many 404 errors has this application had in the last 30 minutes?&#8221;). \u00a0<a href=\"http:\/\/docs.aws.amazon.com\/AmazonCloudWatch\/latest\/logs\/CWL_GettingStarted.html\">More here<\/a>.<\/li>\n<\/ul>\n<\/li>\n<li>Does cloudwatch allow you to setup different metric thresholds at different times? For example, set an alarm at 70% CPU on Wed night but 90% on Sat night?\n<ul>\n<li><a href=\"http:\/\/docs.aws.amazon.com\/AmazonCloudWatch\/latest\/monitoring\/ConsoleAlarms.html\">No<\/a>, but you could do this with custom metrics. \u00a0You could read the cloudwatch default metrics and have an &#8216;cpualarm&#8217; metric which would be 1 or 0 depending on if certain parameters were set. \u00a0Then you could vary the parameters over time. \u00a0Then you could set an alarm on the &#8216;cpualarm&#8217; metric.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cloudwatch is Amazon&#8217;s monitoring and alerting service. Some questions and answers re: this awesome service. How can you create custom metrics? Cloudwatch doesn&#8217;t limit you to the metrics it collects [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[],"class_list":["post-2381","post","type-post","status-publish","format-standard","hentry","category-aws"],"_links":{"self":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/2381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/comments?post=2381"}],"version-history":[{"count":1,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/2381\/revisions"}],"predecessor-version":[{"id":2382,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/2381\/revisions\/2382"}],"wp:attachment":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}