{"id":552,"date":"2017-09-18T12:10:57","date_gmt":"2017-09-18T12:10:57","guid":{"rendered":"http:\/\/wiki.thomasandsofia.com\/?p=552"},"modified":"2017-09-19T22:48:55","modified_gmt":"2017-09-19T22:48:55","slug":"cloudwatch","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=552","title":{"rendered":"CloudWatch (39)"},"content":{"rendered":"<p>Management Tools &gt; CloudWatch<\/p>\n<p>CloudWatch is available for several different AWS services<\/p>\n<ul>\n<li>EC2<\/li>\n<li>ELB<\/li>\n<li>S3<\/li>\n<li>DynamoDB<\/li>\n<li>RDS<\/li>\n<li>Etc.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>Basic Monitoring every 5 minutes<\/li>\n<li>Advanced (Detailed) Monitoring every minute &#8211; but is not free.<\/li>\n<\/ul>\n<h2>Dashboards<\/h2>\n<p>Dashboard widgets, outside of Text, allow you to add as many &#8216;metrics&#8217; to a graph (Line or Stacked) or Number as you wish.<\/p>\n<ul>\n<li>Dashboard &gt; [Create Dashboard]<\/li>\n<li>Widgets (4)\n<ul>\n<li>Text (Markdown text)\n<ul>\n<li>[Add Widget] &gt; Text &gt; [Configure]<\/li>\n<li>Uses Markdown language\n<ul>\n<li># Heading 1, ## Heading 2<\/li>\n<li>[link text](http:\/\/url.com)<\/li>\n<li>*italics*, **bold**, ~~strikethrough~~<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Line (Basic Line)\n<ul>\n<li>[Add Widget] &gt; Line &gt; [Configure] &gt; Select service type (EC2) &gt; &#8216;Per-Instance Metrics&#8217;\n<ul>\n<li>Available metrics listed by Instance Name \/ ID<\/li>\n<\/ul>\n<\/li>\n<li>Select Metric <span style=\"color: #ff0000;\">*Know these for the exam!<\/span>\n<ul>\n<li>CPU Related\n<ul>\n<li>Credit Balance<\/li>\n<li>Credit Useage<\/li>\n<li>Utilization<\/li>\n<\/ul>\n<\/li>\n<li>Disk Related\n<ul>\n<li>Read Bytes<\/li>\n<li>Write Bytes<\/li>\n<li>Read Ops<\/li>\n<li>Write Ops<\/li>\n<\/ul>\n<\/li>\n<li>Network Related\n<ul>\n<li>In<\/li>\n<li>Out<\/li>\n<li>Packets In<\/li>\n<li>Packets Out<\/li>\n<\/ul>\n<\/li>\n<li>Status Check\n<ul>\n<li>For the Instance<\/li>\n<li>For the Hypervisor (Host)<\/li>\n<\/ul>\n<\/li>\n<li>If a Metric is not listed, you will need to create a &#8220;Custom Metric&#8221; for it.\n<ul>\n<li>RAM Utilization<\/li>\n<li>Disk Space Available<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Stacked Area (Same as Line, but lower half colored in)<\/li>\n<li>Number (actual value of Metric during last poll)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Alarms<\/p>\n<p>Unlike Dashboard widgets, Alarms only allow you to set trigger points on a single specific Metric.<\/p>\n<ul>\n<li>Select Metric\n<ul>\n<li>Select the metric you wish to set the trigger point for &gt; [Next]<\/li>\n<\/ul>\n<\/li>\n<li>Create Alarm\n<ul>\n<li>Alarm Threshold\n<ul>\n<li>Name (Must be unique?)<\/li>\n<li>Description -&gt; This is the alert that will be sent<\/li>\n<li>Set Trigger value (&lt;, &lt;=, &gt;=, &gt;)<\/li>\n<li>Set &#8216;Consecutive Periods&#8217; (A period is the time delays between polls.\u00a0 Standard is 5 minutes.<\/li>\n<\/ul>\n<\/li>\n<li>Additional Settings\n<ul>\n<li>Treat Missing data as:\n<ul>\n<li>good (not breaching threshold &#8211; will clear an active alert)<\/li>\n<li>bad (breaching threshold &#8211; will cause an alert)<\/li>\n<li>ignore (maintain current alert status)<\/li>\n<li>missing (default &#8211; definition not clear)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Actions\n<ul>\n<li>You can add as many &#8216;Actions&#8217; as you wish<\/li>\n<li>Notifications\n<ul>\n<li>Whenever this alarm: (Select Alarm state)\n<ul>\n<li>State is ALARM<\/li>\n<li>State is OK<\/li>\n<li>State is INSUFFICIENT<\/li>\n<\/ul>\n<\/li>\n<li>Send notification to: (Notification List)\n<ul>\n<li>All Recipients must &#8216;Opt In&#8217;<\/li>\n<li>New List\n<ul>\n<li>Enter Topic Name (seems like a &#8216;Key&#8217; type value.\u00a0 No spaces!)<\/li>\n<li>Add Email Recipient(s?)\n<ul>\n<li>separate with semicolon?<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>AutoScaling Action<\/li>\n<li>EC2 Action\n<ul>\n<li>Whenever this alarm: (Select Alarm state, see above)<\/li>\n<li>Take this action\n<ul>\n<li>Recover this instance (Reboot?)<\/li>\n<li>Stop this instance<\/li>\n<li>Terminate this instance<\/li>\n<li>Reboot this instance<\/li>\n<\/ul>\n<\/li>\n<li>* AWS will automatically create a new IAM Role to allow these actions!<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Events (Understand at high level)\n<ul>\n<li>Respond to state changes to AWS resources.<\/li>\n<li>Examples\n<ul>\n<li><span data-reactid=\".s.0.0.0.0.3.0.0\">Automatically invoke an AWS Lambda function to update DNS entries when an event notifies you that Amazon EC2 instance enters the Running state<\/span><\/li>\n<li><span data-reactid=\".s.0.0.0.0.3.1.0\">Direct specific API records from CloudTrail to a Kinesis stream for detailed analysis of potential security or availability risks<\/span><\/li>\n<li><span data-reactid=\".s.0.0.0.0.3.2.0\">Take a snapshot of an Amazon EBS volume on a schedule<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Logs (Understand at high level)\n<ul>\n<li>Examples\n<ul>\n<li>Monitor HTTP response codes in Apache logs<\/li>\n<li>Receive alarms for errors in kernel logs<\/li>\n<li>Count exceptions in application logs<\/li>\n<\/ul>\n<\/li>\n<li>Install the Agent to send your logs to the CloudWatch Logs service.<\/li>\n<li>Create metric filters to automatically monitor the logs that are sent.<\/li>\n<li>View the log data you sent and is stored in CloudWatch Logs.<\/li>\n<\/ul>\n<\/li>\n<li>Metrics\n<ul>\n<li>Easy.\u00a0 Use this instead of creating dashboards.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Exam Tips<\/p>\n<ul>\n<li>Standard Monitoring every 5 minutes<\/li>\n<li>Detailed Monitoring every 1 minute<\/li>\n<li>What can you do?\n<ul>\n<li>Create dashboards<\/li>\n<li>Set Alarms<\/li>\n<li>Trigger Events based on rules<\/li>\n<li>Aggregate, monitor and store logs.<\/li>\n<\/ul>\n<\/li>\n<li>Difference between CloudWatch and CloudTrail\n<ul>\n<li>CloudWatch is for MONITORING<\/li>\n<li>CloudTrail is for AUDITING (Who did what, when and where)<\/li>\n<li><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Management Tools &gt; CloudWatch CloudWatch is available for several different AWS services EC2 ELB S3 DynamoDB RDS Etc. &nbsp; Basic Monitoring every 5 minutes Advanced (Detailed) Monitoring every minute &#8211; but is not free. Dashboards Dashboard widgets, outside of Text, allow you to add as many &#8216;metrics&#8217; to a graph (Line or Stacked) or Number ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=552\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-552","post","type-post","status-publish","format-standard","hentry","category-amazon-web-services-aws"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=552"}],"version-history":[{"count":5,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/552\/revisions"}],"predecessor-version":[{"id":558,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/552\/revisions\/558"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}