Exploring Amazon CloudWatch - Metrics, Events and Container Insights | Scribe

    Exploring Amazon CloudWatch - Metrics, Events and Container Insights

    • Hafeez Baig |
    • 21 steps |
    • 2 minutes
    information ordinal icon
    Refer to the following guide to learn how to use IAM in the cloud\ <https://scribehow.com/shared/Creating_an_IAM_User_and_User_Group_in_AWS_Management_Console__hWNiiXlcRJKFqYZZEJD-cg>
    1
    Sign in to **AWS Management Console** as an **IAM User** **Pre-requisite** - Ensure you have selected the AWS region closest to your location\ For this guide, we will be using us-east-2 (Ohio) as a preferred choice
    2
    Type **CloudWatch** in the search bar and click on **CloudWatch** to view the **CloudWatch** Dashboard
    information ordinal icon
    **What is CloudWatch in AWS?** Amazon CloudWatch is a monitoring and observability service provided by Amazon Web Services (AWS). It allows users to collect and track metrics, monitor log files, set alarms, and automatically react to changes in AWS resources in real-time. CloudWatch provides valuable insights into the performance, availability, and health of applications and infrastructure resources running on AWS.
    3
    **Cloudwatch** dashboard will open, click on the **All metrics** from the left bar
    information ordinal icon
    **What are Metrics in CloudWatch?** In Amazon CloudWatch, metrics are fundamental data points that represent the performance, utilization, and behavior of AWS resources and applications over time. These metrics are collected and monitored to gain insights into the health, availability, and operational efficiency of the systems they represent.
    4
    **Metrics** wizard will open, here you can view the graph
    5
    Scroll the page and click on the metric **Lambda** link
    6
    From the **Lambda** metric, click on the **By Function Name** link
    7
    **By Function Name** wizard will open, select the FunctionName **my-s3-notification**
    8
    On **CloudWatch** dashboard, on the top right corner click on the **Custom** option to select the custom data
    9
    Select the option **Relative** and choose the weeks setting, to view 2 weeks of data and click on the **Apply** button
    10
    Here you can visualize the 2 weeks of data in the form of a graph
    information ordinal icon
    Congratulations on exploring and viewing visualized metrics data on CloudWatch! Well done!
    11
    To create **Rule** for CloudWatch, click on the **Rules** from the left bar
    information ordinal icon
    **What are the Event Rules in CloudWatch?** In Amazon CloudWatch, Event Rules (formerly known as CloudWatch Events) allow you to create rules that match events and route them to one or more targets. These rules can be based on a schedule or events generated by AWS services or custom applications.
    12
    **Rules** wizard will open, click on the **Create rule** button on the right side
    13
    **Define rule detail** wizard will open, give the name as "**my-rule"**
    14
    Scroll to the **Rule type** section and select the option **Rule with an event pattern** then, click on the **Next** button
    15
    **Build event pattern** wizard will open, select the option **AWS events or EventBridge partner events**