0%

Explore real-world examples of issues with systems and find ways to resolve them using Amazon CloudWatch as a monitoring service

Key Features

  • Become well-versed with monitoring fundamentals such as understanding the building blocks and architecture of networking
  • Learn how to ensure your applications never face downtime
  • Get hands-on with observing serverless applications and services

Book Description

CloudWatch is Amazon's monitoring and observability service, designed to help those in the IT industry who are interested in optimizing resource utilization, visualizing operational health, and eventually increasing infrastructure performance. This book helps IT administrators, DevOps engineers, network engineers, and solutions architects to make optimum use of this cloud service for effective infrastructure productivity.

You'll start with a brief introduction to monitoring and Amazon CloudWatch and its core functionalities. Next, you'll get to grips with CloudWatch features and their usability. Once the book has helped you develop your foundational knowledge of CloudWatch, you'll be able to build your practical skills in monitoring and alerting various Amazon Web Services, such as EC2, EBS, RDS, ECS, EKS, DynamoDB, AWS Lambda, and ELB, with the help of real-world use cases. As you progress, you'll also learn how to use CloudWatch to detect anomalous behavior, set alarms, visualize logs and metrics, define automated actions, and rapidly troubleshoot issues. Finally, the book will take you through monitoring AWS billing and costs.

By the end of this book, you'll be capable of making decisions that enhance your infrastructure performance and maintain it at its peak.

What you will learn

  • Understand the meaning and importance of monitoring
  • Explore the components of a basic monitoring system
  • Understand the functions of CloudWatch Logs, metrics, and dashboards
  • Discover how to collect different types of metrics from EC2
  • Configure Amazon EventBridge to integrate with different AWS services
  • Get up to speed with the fundamentals of observability and the AWS services used for observability
  • Find out about the role Infrastructure As Code (IaC) plays in monitoring
  • Gain insights into how billing works using different CloudWatch features

Who this book is for

This book is for developers, DevOps engineers, site reliability engineers, or any IT individual with hands-on intermediate-level experience in networking, cloud computing, and infrastructure management. A beginner-level understanding of AWS and application monitoring will also be helpful to grasp the concepts covered in the book more effectively.

Table of Contents

  1. Infrastructure Monitoring with Amazon CloudWatch
  2. Contributors
  3. About the author
  4. About the reviewer
  5. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
    4. Download the example code files
    5. Code in Action
    6. Download the color images
    7. Conventions used
    8. Get in touch
    9. Reviews
  6. Section 1: Introduction to Monitoring and Amazon CloudWatch
  7. Chapter 1: Introduction to Monitoring
    1. Technical requirements
    2. Introducing monitoring
    3. The history of monitoring
    4. Discovering the types of monitoring
    5. Proactive monitoring
    6. Reactive monitoring
    7. Understanding the components of monitoring
    8. Alerts/notifications
    9. Events
    10. Logging
    11. Metrics
    12. System availability
    13. Dashboard
    14. Incidents
    15. Realizing when things go south
    16. Ability to debug
    17. Gaining insight
    18. Sending data/notifications to other systems
    19. Controlling CapEX to run cloud infrastructure
    20. Getting to know Amazon CloudWatch
    21. Introducing the relationship between Amazon CloudWatch and Well-Architected
    22. Summary
    23. Questions
    24. Further reading
  8. Chapter 2: CloudWatch Events and Alarms
    1. Technical requirements
    2. Introducing CloudWatch Events and Amazon EventBridge
    3. Amazon EventBridge
    4. Understanding the components of a CloudWatch event
    5. Input trigger
    6. Rules/event pattern
    7. Target
    8. Configuring a basic CloudWatch event
    9. Introducing CloudWatch alarms
    10. Importance of a CloudWatch alarm
    11. Configuring a basic alarm
    12. Summary
    13. Questions
    14. Further reading
  9. Chapter 3: CloudWatch Logs, Metrics, and Dashboards
    1. Technical requirements
    2. Introducing CloudWatch Logs
    3. Life cycle of a log
    4. Understanding the components of CloudWatch Logs
    5. Configuring a basic CloudWatch agent
    6. Understanding metrics and CloudWatch metrics
    7. Terms associated with CloudWatch metrics
    8. Creating a metric filter from CloudWatch Logs
    9. Working with dashboards
    10. Summary
    11. Questions
    12. Further reading
  10. Section 2: AWS Services and Amazon CloudWatch
  11. Chapter 4: Monitoring AWS Compute Services
    1. Technical requirements
    2. Understanding the fundamentals of IaaS monitoring
    3. Understanding CPU in IaaS
    4. Understanding memory in IaaS
    5. Understanding the disk in IaaS
    6. Collecting custom metrics on EC2
    7. Using a unified CloudWatch agent
    8. Creating an Amazon EventBridge for Amazon EC2
    9. Monitoring Elastic Beanstalk workloads
    10. Monitoring AWS Batch
    11. Case study on CloudWatch custom metrics
    12. Solution
    13. Summary
    14. Questions
    15. Further reading
  12. Chapter 5: Setting Up Container Insights on Amazon CloudWatch
    1. Technical requirements
    2. Introducing the concept of containers
    3. Orchestrating container services in AWS
    4. Overviewing Amazon ECS
    5. Overviewing Amazon EKS
    6. Triggering ECS events on Amazon EventBridge
    7. Configuring CloudWatch Container Insights
    8. Why activate Container Insights?
    9. Activating Container Insights for ECS
    10. Collecting logs for ECS applications
    11. Monitoring of EKS applications and services
    12. Monitoring the control plane
    13. Collecting logs for EKS resources
    14. Setting up custom dashboards and metrics for containers
    15. Case study of Amazon EKS logging and monitoring
    16. Solution
    17. Summary
    18. Questions
    19. Further reading
  13. Chapter 6: Performance Insights for Database Services
    1. Technical requirements
    2. Introduction to database management
    3. Understanding the different types of AWS database technologies
    4. RDS
    5. DynamoDB
    6. ElastiCache
    7. Amazon DocumentDB
    8. Configuring metric monitoring in RDS
    9. Logging operations in Amazon DynamoDB
    10. Monitoring events in ElastiCache
    11. Monitoring Redshift and Amazon DocumentDB cluster status
    12. Monitoring Redshift
    13. Monitoring an Amazon DocumentDB cluster
    14. Case study on monitoring an RDS database
    15. Solution
    16. Summary
    17. Questions
    18. Further reading
  14. Chapter 7: Monitoring Serverless Applications
    1. Technical requirements
    2. Introduction to serverless
    3. Differentiating between serverless and managed services
    4. Monitoring Lambda function metrics with Amazon CloudWatch
    5. Endpoint monitoring for API Gateway and other applications
    6. Monitoring SQS and SNS on Amazon CloudWatch
    7. Monitoring Step Functions using CloudWatch alarms
    8. Case study on Lambda tracing with Amazon X-Ray
    9. Solution
    10. Summary
    11. Questions
    12. Further reading
  15. Chapter 8: Using CloudWatch for Maintaining Highly Available Big Data Services
    1. Technical requirements
    2. Introduction to big data
    3. Properties of big data
    4. Overviewing the aspects of big data
    5. Extraction
    6. Transformation
    7. Loading
    8. Monitoring Amazon Kinesis agent/service
    9. Analyzing Amazon CloudTrail with Amazon Athena
    10. Monitoring AWS Glue jobs with CloudWatch alarms
    11. Case study on monitoring a Kinesis stream
    12. Solution
    13. Summary
    14. Questions
    15. Further reading
  16. Chapter 9: Monitoring Storage Services with Amazon CloudWatch
    1. Technical requirements
    2. Understanding storage devices
    3. EBS
    4. S3
    5. EFS
    6. Monitoring Amazon EBS volume metrics
    7. Understanding the performance metrics of Amazon EFS on CloudWatch
    8. Monitoring of Amazon FSx
    9. Understanding CloudWatch metrics on Amazon S3
    10. Case study regarding a consolidated EBS volume dashboard
    11. Solution
    12. Summary
    13. Questions
    14. Further reading
  17. Chapter 10: Monitoring Network Services
    1. Technical requirements
    2. Introduction to computer networking
    3. Understanding a few common networking terms
    4. Exploring AWS networking services
    5. Monitoring Amazon VPC flow logs
    6. Understanding the behavior of a load balancer with status metrics
    7. Application observability with App Mesh and Cloud Map
    8. AWS Cloud Map
    9. Configuring logging in Amazon Route 53
    10. Case study on VPC analysis
    11. Solution
    12. Summary
    13. Questions
    14. Further reading
  18. Chapter 11: Best Practices and Conclusion
    1. Best methods used in monitoring
    2. Automate everything
    3. Audit monitoring configurations from time to time
    4. Measuring workload performance
    5. Ensuring important metrics go with alarms
    6. An explanation of CloudWatch billing
    7. Summarizing everything learned so far
    8. Summary
  19. Assessments
    1. Chapter 1
    2. Chapter 2
    3. Chapter 3
    4. Chapter 4
    5. Chapter 5
    6. Chapter 6
    7. Chapter 7
    8. Chapter 8
    9. Chapter 9
    10. Chapter 10
    11. Why subscribe?
  20. Other Books You May Enjoy
    1. Packt is searching for authors like you
    2. Leave a review - let other readers know what you think
18.224.0.25