{"id":181009,"date":"2024-04-22T21:53:39","date_gmt":"2024-04-22T20:53:39","guid":{"rendered":"https:\/\/liora.io\/en\/?p=181009"},"modified":"2026-02-06T08:07:14","modified_gmt":"2026-02-06T07:07:14","slug":"aws-cloudwatch-monitoring-and-observability-service-overview","status":"publish","type":"post","link":"https:\/\/liora.io\/en\/aws-cloudwatch-monitoring-and-observability-service-overview","title":{"rendered":"AWS CloudWatch: Monitoring and Observability Service Overview"},"content":{"rendered":"<style>\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><p><strong>Amazon AWS CloudWatch is a service designed to monitor and control the resources and applications you run on AWS. CloudWatch provides real-time monitoring of your various resources, such as your EC2 or RDS instances, your load balancers, etc.<\/strong><\/p>\t\t\n\t\t<p>You can use CloudWatch to collect and track various metrics, monitor your diagnostic logs and create alarms so that you can react effectively to any changes in your AWS resources.<\/p><p>&nbsp;<\/p><p>?Related articles:<\/p><table dir=\"ltr\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" data-sheets-root=\"1\"><colgroup><col width=\"656\"><\/colgroup><tbody><tr><td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;AWS Elastic Load Balancer: The solution that distributes network traffic&quot;}\" data-sheets-hyperlink=\"https:\/\/liora.io\/en\/aws-elastic-load-balancer-the-solution-that-distributes-network-traffic\"><a href=\"https:\/\/liora.io\/en\/aws-elastic-load-balancer-the-solution-that-distributes-network-traffic\" target=\"_blank\" rel=\"noopener\">AWS Elastic Load Balancer: The solution that distributes network traffic<\/a><\/td><\/tr><tr><td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Jam AWS: The playful Amazon learning platform&quot;}\" data-sheets-hyperlink=\"https:\/\/liora.io\/en\/jam-aws-the-playful-learning-platform-from-amazon\"><a href=\"https:\/\/liora.io\/en\/jam-aws-the-playful-learning-platform-from-amazon\" target=\"_blank\" rel=\"noopener\">Jam AWS: The playful Amazon learning platform<\/a><\/td><\/tr><tr><td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;AWS Lambda: Introduction to the Serverless Function&quot;}\" data-sheets-hyperlink=\"https:\/\/liora.io\/en\/aws-lambda-introduction-to-the-serverless-function\"><a href=\"https:\/\/liora.io\/en\/aws-lambda-introduction-to-the-serverless-function\" target=\"_blank\" rel=\"noopener\">AWS Lambda: Introduction to the Serverless Function<\/a><\/td><\/tr><tr><td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;AWS Certification: What is it and how do I get it? &quot;}\" data-sheets-hyperlink=\"https:\/\/liora.io\/en\/aws-certification-what-is-it-and-how-do-i-get-it\"><a href=\"https:\/\/liora.io\/en\/aws-certification-what-is-it-and-how-do-i-get-it\" target=\"_blank\" rel=\"noopener\">AWS Certification: What is it and how do I get it? <\/a><\/td><\/tr><tr><td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;AWS SageMaker: A guide for using the platform&quot;}\" data-sheets-hyperlink=\"https:\/\/liora.io\/en\/aws-sagemaker-a-guide-for-using-the-platform\"><a href=\"https:\/\/liora.io\/en\/aws-sagemaker-a-guide-for-using-the-platform\" target=\"_blank\" rel=\"noopener\">AWS SageMaker: A guide for using the platform<\/a><\/td><\/tr><tr><td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;5 AWS launches and announcements making developers\u2019 life easy in 2022&quot;}\" data-sheets-hyperlink=\"https:\/\/liora.io\/en\/5-aws-launches-and-announcements-making-developers-life-easy-in-2022\"><a href=\"https:\/\/liora.io\/en\/5-aws-launches-and-announcements-making-developers-life-easy-in-2022\" target=\"_blank\" rel=\"noopener\">5 AWS launches and announcements making developers\u2019 life easy in 2022<\/a><\/td><\/tr><\/tbody><\/table>\t\t\n\t\t\t<h3>How do you monitor performance?<\/h3>\t\t\n\t\t<p><strong>Amazon CloudWatch<\/strong> gives users complete visibility of their resource utilisation, application performance and the overall health of their <strong>AWS infrastructure.<\/strong><\/p><p>In order to understand how this works, it is important to understand these fundamental concepts:<\/p><ul><li><strong>Namespaces:<\/strong> these are logical containers for metrics. They can be thought of as categories or groups of metrics associated with a particular application, service or resource. They must be unique, and will be created before any metrics can be collected.<\/li><li><strong>Metrics:<\/strong> this is performance data sent to CloudWatch. They can include information about the performance of various AWS resources (<a href=\"https:\/\/liora.io\/en\/aws-ec2-how-to-use-amazons-tool\">EC2 instances,<\/a> DynamoDB databases, Lambda functions, etc.). They are identified by a name, a unit of measurement, a dimension and a namespace.<\/li><li><strong>Dimensions:<\/strong> dimensions are additional metric attributes that can be used to filter and segment their data. They are key-value pairs that can be used to create custom views based on different attributes of your AWS environment.<\/li><li><strong>Statistics:<\/strong> these are calculated values for a given metric over a specified period of time. CloudWatch automatically calculates statistics for all metrics and makes them available for analysis and monitoring.<\/li><li><strong>Percentiles (percentages):<\/strong> these measure the distribution of values for a metric, in the form of a percentage. They can be used to understand performance trends and abnormal behaviour of AWS resources.<\/li><li><strong>Alarms:<\/strong> these are threshold rules above which an automated action is triggered when a metric exceeds or falls below a specified threshold. This is an essential tool for monitoring the performance of your AWS resources in real time.<\/li><\/ul><p>Think of <strong>CloudWatch<\/strong> as a metrics warehouse. Your AWS service will record its metrics in this warehouse, and you&#8217;ll get statistics based on these metrics.<\/p>\t\t\n\t\t\t<h3>Amazon CloudWatch Logs: logging<\/h3>\t\t\n\t\t<p>CloudWatch Logs lets you access, monitor and store log files from their AWS resource. Thanks to these logs you will be able to diagnose your systems and applications.<\/p><p>Here are some of the features of CloudWatch Logs:<\/p>\t\t\n\t\t\t<style type=\"text\/css\">\n.tg  {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-72o8{background-color:#c0c0c0;font-family:\"Trebuchet MS\", Helvetica, sans-serif !important;font-size:100%;font-weight:bold;\n  text-align:center;vertical-align:top}\n.tg .tg-cfot{font-family:\"Trebuchet MS\", Helvetica, sans-serif !important;font-size:100%;text-align:left;vertical-align:top}\n.tg .tg-388z{background-color:#efefef;font-family:\"Trebuchet MS\", Helvetica, sans-serif !important;font-size:100%;text-align:center;\n  vertical-align:top}\n<\/style>\n<table style=\"undefined;table-layout: fixed; width: 600px\">\n<colgroup>\n<col style=\"width: 100px\">\n<col style=\"width: 150px\">\n<col style=\"width: 350px\">\n<\/colgroup>\n<thead>\n  <tr>\n    <th><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/2023\/05\/image6-1.png\" alt=\"Image\" width=\"75\" height=\"75\"><br><\/th>\n    <th>Log Collection<br><\/th>\n    <th><p>Log collection can be performed from various sources, such as EC2 instances, Docker containers, AWS services, or third-party applications.<\/p><p><i>An agent (SSM) must be installed on the source to enable sending to CloudWatch.<\/i><\/p><\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n  <tr>\n    <td><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/2023\/05\/image5-1.png\" alt=\"Image\" width=\"75\" height=\"75\"><br><br><\/td>\n    <td>Log Storage<br><\/td>\n    <td><p>The collected logs are stored in log groups. You can create groups for each application, service, or resource you want to monitor.<\/p><p><i>They are retained for a defined period (from a few days to several years).<\/i><\/p><\/td>\n  <\/tr>\n  <tr>\n    <td><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/2023\/05\/image4-2.png\" alt=\"Image\" width=\"75\" height=\"75\"><\/td>\n    <td>Search and Filtering<br><\/td>\n    <td>You can search and filter your logs using advanced search expressions.<\/td>\n  <\/tr>\n  <tr>\n    <td><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/2023\/05\/image3-2.png\" alt=\"Image\" width=\"75\" height=\"75\"><\/td>\n    <td>Log Visualization<\/td>\n    <td>A simple and user-friendly graphical interface is provided to visualize your logs as customizable graphs and dashboards.<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\n\t\t<p>Monitoring through these log files is carried out in near real time, and you can search for keywords, specific phrases, or even values. What&#8217;s more, CloudWatch logs can be implemented <strong>at no extra cost to your AWS account.<\/strong><\/p>\t\t\n\t\t\t\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\"><div class=\"wp-block-button \"><a class=\"wp-block-button__link wp-element-button \" href=\"\/en\/courses\/cloud-dev\/aws-solutions-architect\">Upgrade your skills on AWS<\/a><\/div><\/div>\n\n\t\t\t<h3>CloudWatch events<\/h3>\t\t\n\t\t<p>They will give you access to near-real-time event streams as your AWS environment evolves. They can then trigger notifications or other automated actions.<\/p><p>The main components of CloudWatch events are as follows:<\/p>\t\t\n\t\t\t<style type=\"text\/css\">\n.tg  {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-e0gc{background-color:#efefef;border-color:inherit;font-family:\"Trebuchet MS\", Helvetica, sans-serif !important;\n  font-size:100%;text-align:center;vertical-align:top}\n.tg .tg-v7vj{background-color:#c0c0c0;border-color:inherit;font-family:\"Trebuchet MS\", Helvetica, sans-serif !important;\n  font-size:100%;font-weight:bold;text-align:center;vertical-align:top}\n.tg .tg-sc94{border-color:inherit;font-family:\"Trebuchet MS\", Helvetica, sans-serif !important;font-size:100%;text-align:left;\n  vertical-align:top}\n<\/style>\n<table style=\"undefined;table-layout: fixed; width: 600px\">\n<colgroup>\n<col style=\"width: 100px\">\n<col style=\"width: 150px\">\n<col style=\"width: 350px\">\n<\/colgroup>\n<thead>\n  <tr>\n    <th><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/2023\/05\/image2-2.png\" alt=\"Image\" width=\"75\" height=\"75\"><\/th>\n    <th>Les \u00e9v\u00e9nements<\/th>\n    <th>Ils sont g\u00e9n\u00e9r\u00e9s de 4 mani\u00e8res distinctes, et sont repr\u00e9sent\u00e9s en tant que JSON :\n    <ul>\n        <li>Ils peuvent provenir d\u2019AWS lorsqu\u2019une ressource change d\u2019\u00e9tat<\/li>\n        <li>Lors d\u2019\u00e9v\u00e9nements g\u00e9n\u00e9r\u00e9s par des appels \u00e0 des APIs et des connexions \u00e0 la console<\/li>\n        <li>Votre propre application ou code peut \u00e9galement g\u00e9n\u00e9rer un \u00e9v\u00e9nement et le publier sur CloudWatch<\/li>\n        <li>Par le biais de planification, \u00e0 intervalles d\u00e9finis, de type Cron par exemple<\/li>\n    <\/ul>\n    <\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n  <tr>\n    <td><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/2023\/05\/image7-1.png\" alt=\"Image\" width=\"75\" height=\"75\"><\/td>\n    <td>Les r\u00e8gles<\/td>\n    <td>Elles font correspondre  les \u00e9v\u00e9nements entrants et les redirigent vers une ou plusieurs cibles. Elles ne disposent pas d\u2019ordre de traitement, chaque r\u00e8gle correspondant \u00e0 un \u00e9v\u00e9nement sera trait\u00e9e<\/td>\n  <\/tr>\n  <tr>\n    <td><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/2023\/05\/image1-1.png\" alt=\"Image\" width=\"75\" height=\"75\"><\/td>\n    <td>Les cibles<\/td>\n    <td><p>Elles traitent les \u00e9v\u00e9nements qui sont sp\u00e9cifi\u00e9s dans les r\u00e8gles.<\/p><p>Initialement, 4 types de cibles existent : int\u00e9gr\u00e9s (built-in), les fonctions Lambda, les flux Kinesis et les topics SNS. Une seule r\u00e8gle peut sp\u00e9cifier plusieurs cibles.<\/p><\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\t\t\n\t\t\t<h3>How much does Amazon Cloudwatch cost?<\/h3>\t\t\n\t\t<p>Amazon CloudWatch has a trial period that should enable many common use cases to be met in order to test the service. In addition, most services automatically provide metrics to CloudWatch free of charge.<\/p><p>The free plan (which, incidentally, never expires) gives you access to the following volume:<\/p><ul><li>10 custom metrics<\/li><li>10 alarms<\/li><li>One million API requests<\/li><li>5GB of storage for log ingestion and 5GB for log archiving<\/li><li>3 dashboards, each with 50 metrics per month<\/li><\/ul><p>There is no minimum charge for the paid plan, and you only pay per use. Pricing for the paid plan differs depending on the<strong> AWS<\/strong> region in which you are located. It is therefore advisable to check the pricing in force in your region, and it should be noted that each CloudWatch feature is priced differently.<\/p>\t\t\n\t\t\t<h3>Conclusion<\/h3>\t\t\n\t\t<p>Amazon CloudWatch is extremely useful when it comes to monitoring and the various tasks involved, which can quickly prove time-consuming and laborious. By allowing administrators to monitor their metrics across a wide range of AWS services (as well as enabling the creation of custom metrics), in conjunction with the use of alarms and notifications, Amazon CloudWatch is a very powerful tool.<\/p>\t\t\n\t\t\t\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\"><div class=\"wp-block-button \"><a class=\"wp-block-button__link wp-element-button \" href=\"\/en\/courses\/cloud-dev\/aws-solutions-architect\">Start training on AWS<\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Amazon AWS CloudWatch is a service designed to monitor and control the resources and applications you run on AWS. CloudWatch provides real-time monitoring of your various resources, such as your EC2 or RDS instances, your load balancers, etc. You can use CloudWatch to collect and track various metrics, monitor your diagnostic logs and create alarms [&hellip;]<\/p>\n","protected":false},"author":76,"featured_media":181011,"comment_status":"open","ping_status":"open","sticky":false,"template":"elementor_theme","format":"standard","meta":{"_acf_changed":false,"editor_notices":[],"footnotes":""},"categories":[2434],"class_list":["post-181009","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-dev"],"acf":[],"_links":{"self":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/181009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/users\/76"}],"replies":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/comments?post=181009"}],"version-history":[{"count":1,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/181009\/revisions"}],"predecessor-version":[{"id":205797,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/181009\/revisions\/205797"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media\/181011"}],"wp:attachment":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media?parent=181009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/categories?post=181009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}