{"id":1560,"date":"2018-09-03T23:02:25","date_gmt":"2018-09-03T23:02:25","guid":{"rendered":"http:\/\/wiki.thomasandsofia.com\/?p=1560"},"modified":"2018-09-04T01:33:10","modified_gmt":"2018-09-04T01:33:10","slug":"deep-dive-into-aws-cloudwatch","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=1560","title":{"rendered":"Deep Dive into AWS CloudWatch"},"content":{"rendered":"<p><a href=\"http:\/\/wiki.thomasandsofia.com\/2018\/08\/31\/aws-cloudwatch-masterclass\/\">Main Menu<\/a><\/p>\n<h1>Section Menu<\/h1>\n<ul>\n<li><a href=\"#AWSCloudWatchDeepDive\">AWS CloudWatch Deep Dive<\/a><\/li>\n<li><a href=\"#AWSCloudWatchDashboards\">AWS CloudWatch Dashboards<\/a><\/li>\n<li><a href=\"#AWSCloudWatchAlarms\">AWS CloudWatch Alarms<\/a><\/li>\n<li><a href=\"#AWSCloudWatchFeatures\">AWS CloudWatch Features<\/a><\/li>\n<li><a href=\"#Quiz\">Quiz<\/a><\/li>\n<\/ul>\n<p><a name=\"AWSCloudWatchDeepDive\"><\/a><\/p>\n<h1>AWS CloudWatch Deep Dive<\/h1>\n<p><a href=\"https:\/\/www.udemy.com\/aws-monitoring-alerting-with-aws-cloudwatch-and-aws-sns\/learn\/v4\/t\/lecture\/7082792?start=0\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/aws-monitoring-alerting-with-aws-cloudwatch-and-aws-sns\/learn\/v4\/t\/lecture\/7082792?start=0<\/a><\/p>\n<h2>Key areas for using CloudWatch<\/h2>\n<ul>\n<li>Monitor AWS infrastructure\n<ul>\n<li>EC2, RDS, S3,Load Balancers, etc.<\/li>\n<li>No special code required to make this work&#8230;just use it<\/li>\n<\/ul>\n<\/li>\n<li>Monitor applications and service via custom metrics<\/li>\n<li>Monitor log files\n<ul>\n<li>Can also aggregate logs together into a single view<\/li>\n<\/ul>\n<\/li>\n<li>Monitor and react to alarms\n<ul>\n<li>Spike in CPU?\n<ul>\n<li>Spin up new instance<\/li>\n<li>Add to load balancer<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Possible Alarm States<\/h2>\n<ul>\n<li>OK: Everything is within defined threshold<\/li>\n<li>Alarm: Outside of defined threshold<\/li>\n<li>Insufficient Data:\n<ul>\n<li>Alarm has just started and metric is not yet available<\/li>\n<li>Enough data not available to determine the Alarm&#8217;s state<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>CloudWatch leans heavily on:<\/h2>\n<ul>\n<li>SNS &#8211; Simple Notification Service<\/li>\n<li>SQS &#8211; Simple Queue Service<\/li>\n<li>Lamda<\/li>\n<li>Auto Scaling<\/li>\n<li>Many More<\/li>\n<li>New being added all the time<\/li>\n<\/ul>\n<p><a name=\"AWSCloudWatchDashboards\"><\/a><\/p>\n<h1>AWS CloudWatch Dashboards<\/h1>\n<p><a href=\"https:\/\/www.udemy.com\/aws-monitoring-alerting-with-aws-cloudwatch-and-aws-sns\/learn\/v4\/t\/lecture\/7082794?start=0\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/aws-monitoring-alerting-with-aws-cloudwatch-and-aws-sns\/learn\/v4\/t\/lecture\/7082794?start=0<\/a><\/p>\n<h2>Dashboards overview<\/h2>\n<ul>\n<li>You can create as many dashboards as you wish<\/li>\n<li>Each Dashboard can have multiple widgets with different criteria<\/li>\n<\/ul>\n<h2>Demo<\/h2>\n<ul>\n<li>CloudWatch &gt; Dashboards &gt; [Create dashboard]\n<ul>\n<li>Name: no spaces<\/li>\n<li>[Create dashboard]<\/li>\n<\/ul>\n<\/li>\n<li>Widgets\n<ul>\n<li>Line Graph<\/li>\n<li>Stacked Graph: For viewing multiple metrics on same graph\n<ul>\n<li>Results appear to be additive (.1 + .2 + .05=.35 total measurement.)<\/li>\n<li>Colors in the area below the line.<\/li>\n<\/ul>\n<\/li>\n<li>Number: See the last value received<\/li>\n<li>Text: HTML style formatting using Markdown<\/li>\n<\/ul>\n<\/li>\n<li>Widgets can contain:\n<ul>\n<li>Data from one or more metrics\n<ul>\n<li>Each metric will be in a different color.<\/li>\n<\/ul>\n<\/li>\n<li>Data from completely different elements\n<ul>\n<li>All graphs will be auto-scaled to fit all data<\/li>\n<\/ul>\n<\/li>\n<li>Left and Right Y Axis limits\n<ul>\n<li>Set minimum and maximum values to prevent auto scaling from making small values invisible because a large value might over-compress the remaining data.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Set the refresh interval\n<ul>\n<li>10 seconds, 1 min, 2 min, 5 min, 15 minutes<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a name=\"AWSCloudWatchAlarms\"><\/a><\/p>\n<h1>AWS CloudWatch Alarms<\/h1>\n<p><a href=\"https:\/\/www.udemy.com\/aws-monitoring-alerting-with-aws-cloudwatch-and-aws-sns\/learn\/v4\/t\/lecture\/7082796?start=0\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/aws-monitoring-alerting-with-aws-cloudwatch-and-aws-sns\/learn\/v4\/t\/lecture\/7082796?start=0<\/a><\/p>\n<h2>Demo<\/h2>\n<ul>\n<li>CloudWatch &gt; Alarms\n<ul>\n<li>You can see how many alarms have been set for each alarm &#8216;state&#8217;: Alarm, Ok, Insufficient Data<\/li>\n<\/ul>\n<\/li>\n<li>[Create alarm]\n<ul>\n<li>Will see all metrics available for <strong>all<\/strong> AWS services in that Region\n<ul>\n<li>As new services are deployed, their metrics will automatically become available.<\/li>\n<\/ul>\n<\/li>\n<li>Metrics can be based on Average, Maximum or Minimum values.<\/li>\n<li>Time Period: 10 sec, 30 sec, 1 min, 5 min, 15 min, 30 min, 6 hrs, 1 day<\/li>\n<li>Consecutive Periods\n<ul>\n<li>if a metric is broken for x number of Consecutive Time Periods<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Suggested to use multiple &#8216;Alarms&#8217; such to send an alert when an alarm state returns to &#8216;OK&#8217;<\/li>\n<\/ul>\n<p><a name=\"AWSCloudWatchFeatures\"><\/a><\/p>\n<h1>AWS CloudWatch Features<\/h1>\n<p><a href=\"https:\/\/www.udemy.com\/aws-monitoring-alerting-with-aws-cloudwatch-and-aws-sns\/learn\/v4\/t\/lecture\/7082798?start=0\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/aws-monitoring-alerting-with-aws-cloudwatch-and-aws-sns\/learn\/v4\/t\/lecture\/7082798?start=0<\/a><\/p>\n<p>Other features available with CloudWatch<\/p>\n<h2>Billing Alarms<\/h2>\n<ul>\n<li>Create alarms on estimated charges and enable alerts\n<ul>\n<li>These can be &#8216;Smart&#8217; alerts that can decommission resources<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Cloud Events<\/h2>\n<ul>\n<li>Help you respond to state changes in your AWS resource pool.<\/li>\n<li>Events run specific tasks when resources change state.\n<ul>\n<li>Example: Adding a new instance to our Domain automatically<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Logs<\/h2>\n<ul>\n<li>Logs are used to\n<ul>\n<li>store<\/li>\n<li>view<\/li>\n<li>index<\/li>\n<li>search<\/li>\n<\/ul>\n<\/li>\n<li>Logs generated from various AWS services such as\n<ul>\n<li>Lamda<\/li>\n<li>RDS<\/li>\n<li>EC2<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Metrics<\/h2>\n<ul>\n<li>Monitor various metrics collected by AWS CloudWatch<\/li>\n<\/ul>\n<h2>Additional Features<\/h2>\n<ul>\n<li>Auto Scaling integration and Descaling\n<ul>\n<li>Scale based on\n<ul>\n<li>Schedule<\/li>\n<li>Demand<\/li>\n<li>Utilization<\/li>\n<\/ul>\n<\/li>\n<li>Scale down for low utilization or scale up if over x%<\/li>\n<\/ul>\n<\/li>\n<li>Reboot failed instances due to\n<ul>\n<li>Loss of network connectivity<\/li>\n<li>System power<\/li>\n<li>other software or hardware issues<\/li>\n<\/ul>\n<\/li>\n<li>Integrate with 3rd party monitoring tools\n<ul>\n<li>Copper AG<\/li>\n<li>Stack Driver<\/li>\n<li>New Relic<\/li>\n<\/ul>\n<\/li>\n<li>Create Custom Metrics\n<ul>\n<li>Memory Utilization<\/li>\n<li>Once the metrics are created in CloudWatch, you can create alarms based on them.<\/li>\n<li>These require custom scripts that need to be installed.\n<ul>\n<li>Memory Utilization: Memory used by applications and OS exclusive of the Cache and buffers as Percentage<\/li>\n<li>Memory Used: Memory used by applications and OS exclusive of the Cache and buffers in Megabytes<\/li>\n<li>Memory Available: Available memory displayed in Megabytes<\/li>\n<\/ul>\n<\/li>\n<li>Disk\n<ul>\n<li>Disk Space Utilization: Space used as a percentage<\/li>\n<li>Disk Space Used: In Gigabytes<\/li>\n<li>Disk Space Available: In Gigabytes<\/li>\n<\/ul>\n<\/li>\n<li>Swap Space\n<ul>\n<li>Utilization as a percentage<\/li>\n<li>Used in Megabytes<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a name=\"Quiz\"><\/a><\/p>\n<h1>Quiz<\/h1>\n<h3>Which of the following statements is TRUE for AWS CloudWatch<\/h3>\n<ul>\n<li>Collects and monitors various metrics available to us within our AWS environment<\/li>\n<li>Integrates seamlessly with many different AWS services<\/li>\n<li>Using CloudWatch, users can setup various alarms and notifications<\/li>\n<li><strong>All of the above<\/strong><\/li>\n<\/ul>\n<h3>_______ is a prebuilt messaging service, which can be directly hooked with AWS CloudWatch.<\/h3>\n<ul>\n<li>RDS<\/li>\n<li>ELB<\/li>\n<li><strong>SNS<\/strong><\/li>\n<li>EC2<\/li>\n<\/ul>\n<h3>CloudWatch Alarms have 3 possible states<\/h3>\n<ul>\n<li><strong>OK, Alarm and Insufficient Data<\/strong><\/li>\n<li>OK, Resume and Insufficient Data<\/li>\n<li>Start, Alarm and Resume<\/li>\n<li>OK, Alarm and Sufficient Data<\/li>\n<\/ul>\n<h3>&#8220;The CloudWatch cannot collect and monitor any type of log files within the AWS cloud.&#8221;<\/h3>\n<ul>\n<li>True<\/li>\n<li><strong>False<\/strong><\/li>\n<\/ul>\n<h3>&#8220;AWS CloudWatch Alarms can be setup based on CloudWatch metrics.&#8221;<\/h3>\n<ul>\n<li><strong>True<\/strong><\/li>\n<li>False<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Main Menu Section Menu AWS CloudWatch Deep Dive AWS CloudWatch Dashboards AWS CloudWatch Alarms AWS CloudWatch Features Quiz AWS CloudWatch Deep Dive https:\/\/www.udemy.com\/aws-monitoring-alerting-with-aws-cloudwatch-and-aws-sns\/learn\/v4\/t\/lecture\/7082792?start=0 Key areas for using CloudWatch Monitor AWS infrastructure EC2, RDS, S3,Load Balancers, etc. No special code required to make this work&#8230;just use it Monitor applications and service via custom metrics Monitor log ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=1560\" 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,39],"tags":[],"class_list":["post-1560","post","type-post","status-publish","format-standard","hentry","category-amazon-web-services-aws","category-cloudwatch"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/1560","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=1560"}],"version-history":[{"count":7,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/1560\/revisions"}],"predecessor-version":[{"id":1568,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/1560\/revisions\/1568"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}