AWS Observability Handbook: Monitor, trace, and alert your cloud applications with AWS’ myriad observability tools
- Length: 452 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2023-05-09
- ISBN-10: 1804616710
- ISBN-13: 9781804616710
- Sales Rank: #368276 (See Top 100 Books)
Accelerate cloud adoption using AWS CloudWatch, X-ray, Distro for OpenTelemetry, Amazon DevOps Guru, and more to monitor and build resilient systems
Purchase of the print or Kindle book includes a free PDF eBook
Key Features
- Gain a thorough understanding of observability principles along with different AWS service offerings and best practices
- Ensure customer satisfaction by monitoring user experience and fixing bottlenecks quickly
- Learn from experts to get the best possible insights into AWS’ observability solutions
Book Description
As modern application architecture grows increasingly complex, identifying potential points of failure and measuring end user satisfaction, in addition to monitoring application availability, is key. This book helps you explore AWS observability tools that provide end-to-end visibility, enabling quick identification of performance bottlenecks in distributed applications.
You’ll gain a holistic view of monitoring and observability on AWS, starting from observability basics using Amazon CloudWatch and AWS X-Ray to advanced ML-powered tools such as AWS DevOps Guru. As you progress, you’ll learn about AWS-managed open source services such as AWS Distro for OpenTelemetry (ADOT) and AWS managed Prometheus, Grafana, and the ELK Stack. You’ll implement observability in EC2 instances, containers, Kubernetes, and serverless apps and grasp UX monitoring. With a fair mix of concepts and examples, this book helps you gain hands-on experience in implementing end-to-end AWS observability in your applications and navigating and troubleshooting performance issues with the help of use cases. You’ll also learn best practices and guidelines, such as how observability relates to the Well-Architected Framework.
By the end of this AWS book, you’ll be able to implement observability and monitoring in your apps using AWS’ native and managed open source tools in real-world scenarios.
What you will learn
- Capture metrics from an EC2 instance and visualize them on a dashboard
- Conduct distributed tracing using AWS X-Ray
- Derive operational metrics and set up alerting using CloudWatch
- Achieve observability of containerized applications in ECS and EKS
- Explore the practical implementation of observability for AWS Lambda
- Observe your applications using Amazon managed Prometheus, Grafana, and OpenSearch services
- Gain insights into operational data using ML services on AWS
- Understand the role of observability in the cloud adoption framework
Who This Book Is For
This book is for SREs, DevOps and cloud engineers, and developers who are looking to achieve their observability targets using AWS native services and open source managed services on AWS. It will assist solution architects in achieving operational excellence by implementing cloud observability solutions for their workloads. Basic understanding of AWS cloud fundamentals and different AWS cloud services used to run applications such as EC2, container solutions such as ECS, and EKS will be helpful when using this book.
AWS Observability Handbook Contributors About the authors About the reviewers Preface Who this book is for What this book covers To get the most out of this book Download the example code files Download the color images Conventions used Get in touch Share Your Thoughts Download a free PDF copy of this book Part 1: Getting Started with Observability on AWS Chapter 1: Observability 101 Technical requirements What is observability? The need for observability in a distributed application environment Building blocks of observability Metrics Logs Traces What is the relationship between the three pillars? Benefits of observability Understanding application health and performance to improve customer experience Improving developer productivity Getting more insight with visualizations Digital eperience monitoring Controlling cost and planning capacity Summary Questions Chapter 2: Overview of the Observability Landscape on AWS Technical requirements Overview of observability tools in AWS Overview of native observability services in AWS Amazon CloudWatch Metrics Amazon CloudWatch Logs AWS X-Ray Amazon EventBridge CloudWatch Alarms CloudWatch Dashboards CloudWatch Synthetics Real User Monitoring (RUM) CloudWatch Evidently CloudWatch Container Insights CloudWatch Lambda Insights CloudWatch Contributor Insights CloudWatch Application Insights CloudWatch Metric Insights CloudWatch Logs Insights CloudWatch ServiceLens Overview of AWS-managed open source observability services in AWS Amazon Managed Service for Prometheus Amazon OpenSearch Service Amazon Managed Grafana AI and ML insights Instrumentation Adoption of observability services in AWS Summary Questions Chapter 3: Gathering Operational Data and Alerting Using Amazon CloudWatch Technical requirements Overview of CloudWatch metrics and logs Deployment and configuration of the CloudWatch agent in an EC2 instance The unified CloudWatch agent EC2 Windows instance monitoring with the unified CloudWatch agent Manual installation and configuration of the CloudWatch agent Automated installation using AWS Systems Manager Overview of CloudWatch alarms and dashboards CloudWatch alarms CloudWatch dashboards Overview of Amazon EventBridge Summary Questions Chapter 4: Implementing Distributed Tracing Using AWS X-Ray Technical requirements Overview of AWS X-Ray X-Ray concepts Navigating the AWS X-Ray console Step 1 – deploying a sample application Step 2 – navigating the application Step 3 – navigating the AWS CloudWatch X-Ray user interface Overview of the CloudWatch ServiceLens map Overview of X-Ray Analytics End-to-end instrumentation of a sample application deployed in an EC2 instance Preparing the environment Testing the sample application Exploring the sample application running on an EC2 instance Summary Part 2: Automated and Machine Learning-Powered Observability on AWS Chapter 5: Insights into Operational Data with CloudWatch Technical requirements Deriving operational intelligence from CloudWatch metrics CloudWatch metrics explorer CloudWatch Metrics Insights Metric math expressions CloudWatch anomaly detection Exploring CloudWatch Application Insights Exploring CloudWatch Logs Insights Exploring CloudWatch Contributor Insights and its use cases Summary Questions Chapter 6: Observability for Containerized Applications on AWS Technical requirements Introduction to CloudWatch Container Insights Set up a Cloud9 development workspace Set up an Amazon EKS cluster Set up an Amazon ECS cluster Implementing observability for a distributed application running on Amazon EKS Container Insights metrics on your EKS EC2 or customer-managed Kubernetes clusters Container Insights metrics on EKS Fargate Implementing observability for a distributed application running on Amazon ECS Container Insights on Amazon ECS for the cluster- and service-level metrics Container Insights on Amazon ECS for instance-level metrics using ADOT Collect logs and send them to CloudWatch Logs using FireLens End-to-end visibility of containerized applications using AWS App Mesh Add monitoring and logging capabilities Add end-to-end tracing capabilities Understanding and troubleshooting performance bottlenecks in containers Workspace Build the environments Set up Container Insights Explore Container Insights Set up load tests Load testing metrics Accessing CloudWatch Logs Insights Summary Chapter 7: Observability for Serverless Applications on AWS Technical requirements Deploying a basic serverless application running on AWS Lambda Built-in metrics Lambda logging CloudWatch Logs Insights from Lambda logs API Gateway metrics and logs CloudWatch Lambda Insights Single-function view Multifunction view End-to-end tracing of the Node.js application Exploring Lambda Powertools Lambda Powertools for enhanced logging Lambda Powertools – custom metrics Lambda Powertools – tracing Troubleshooting performance issues using X-Ray groups Summary Questions Chapter 8: End User Experience Monitoring on AWS Technical requirements End user experience monitoring CloudWatch Synthetics How CloudWatch Synthetics works Use cases of CloudWatch Synthetics monitoring Understanding CloudWatch Synthetics canaries Configuring CloudWatch Synthetics canaries CloudWatch RUM How CloudWatch RUM works Setting up CloudWatch RUM for an S3 static website Summary Questions Part 3: Open Source Managed Services on AWS Chapter 9: Collecting Metrics and Traces Using OpenTelemetry Technical requirements An open standard to collect metrics and traces using AWS Distro for OpenTelemetry How to instrument once for multiple monitoring destinations Traces Metrics Logs OpenTelemetry Collector deployment Instrumenting a container application running on ECS using OpenTelemetry The OpenTelemetry Python SDK for traces The OpenTelemetry Python SDK for metrics Deploying the OpenTelemetry Collector Checking the resulting application telemetry Summary Chapter 10: Deploying and Configuring an Amazon Managed Service for Prometheus Technical requirements Prometheus and Grafana overview Setting up Amazon Managed Service for Prometheus and Grafana Setting up a Cloud9 development workspace Setting up an AMP workspace Setting up an AMG dashboard Setting up an Amazon EKS cluster and tools Ingesting telemetry data Ingestion from a new Prometheus server Ingestion using AWS Distro for OpenTelemetry (ADOT) Querying Prometheus metrics via API and Grafana Querying Prometheus metrics using Prometheus APIs Querying Prometheus metrics using Amazon Managed Grafana Implementing container monitoring Summary Chapter 11: Deploying the Elasticsearch, Logstash, and Kibana Stack Using Amazon OpenSearch Service Technical requirements Amazon OpenSearch Service overview Setup and configuration of Amazon OpenSearch Service Installation of a standalone cluster of Amazon OpenSearch Service Observability of the application traces and logs using Amazon OpenSearch Service Application traces Application logs Anomaly detection in Amazon OpenSearch Service Security for Amazon OpenSearch Service Summary Questions Part 4: Scaled Observability and Beyond Chapter 12: Augmenting the Human Operator with Amazon DevOps Guru Technical requirements Overview of Amazon DevOps Guru Enabling Amazon DevOps Guru Analyzing resources using Amazon DevOps Guru How DevOps Guru works Reviewing Amazon DevOps Guru insights for serverless applications in AWS Discovering and analyzing resources Decreasing DynamoDB capacity Generating traffic to create anomalies Reactive insights Proactive insights Understanding Relational Database Service (RDS) performance issues using DevOps Guru AI and ML insights Amazon CodeGuru Amazon Lookout for Metrics Summary Questions Chapter 13: Observability Best Practices at Scale Observability best practices at scale Understanding multi-account and multi-Region topologies Exploring CloudWatch cross-account observability How cross-account observability works Configuring CloudWatch cross-account observability Exploring cross-account cross-Region CloudWatch Configuring AWS cross-account cross-Region in AWS Organizations Limitations of CloudWatch cross-account cross-Region observability Summary Questions Chapter 14: Be Well-Architected for Operational Excellence Technical requirements An overview of the AWS Well-Architected Framework Applying the Well-architected framework and exploring automated solutions Operational excellence Security Reliability Performance efficiency Cost optimization Sustainability Understanding management and governance in the Well-Architected Framework Summary Questions Chapter 15: The Role of Observability in the Cloud Adoption Framework Overview of Cloud Adoption Framework 3.0 Cloud transformation journey Transformation domains Foundational capabilities Business outcomes Developing an observability strategy for your organization Benefits of defining an observability strategy The output of the observability strategy Applying an observability strategy Operations perspective in the CAF Observability maturity model Best practices for faster observability maturity Role of observability in the CAF and the best practices for quicker adoption of the cloud Beyond observability Observability AIOps-based operations Event management Service management Automated resolution Dashboards Summary Questions Index Why subscribe? Other Books You May Enjoy Packt is searching for authors like you Share Your Thoughts Share Your Thoughts Download a free PDF copy of this book
Donate to keep this site alive
How to download source code?
1. Go to: https://github.com/PacktPublishing
2. In the Find a repository… box, search the book title: AWS Observability Handbook: Monitor, trace, and alert your cloud applications with AWS’ myriad observability tools
, sometime you may not get the results, please search the main title.
3. Click the book title in the search results.
3. Click Code to download.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.