Skip to main content
Welcome. This lesson is a concise, high-level orientation to the core AWS monitoring and observability services you’ll encounter in real-world deployments. It covers what each service does, the primary concepts to understand, and practical next steps so you can follow up with hands-on labs.
This is a high-level overview. Each service has many features and integrations; hands-on instrumentation, configuration, and best practices are covered in more detailed materials.

Overview of the core tools

Primary services covered in this lesson:
  • CloudWatch — metrics, logs, dashboards, and alarms to monitor resources and applications.
  • X-Ray — distributed tracing to follow requests across services and pinpoint latency or faults.
  • AWS Config — resource inventory, configuration history, and compliance evaluation.
  • CloudTrail — audit logs of API activity and user actions across your AWS account.
Quick links and references:

CloudWatch (Metrics, Logs, Dashboards, Alarms)

Amazon CloudWatch is the central observability service in AWS. It collects metrics and logs from AWS services, custom applications, and infrastructure so you can visualize health, detect anomalies, and automate responses. Key capabilities
  • Metrics: Built-in metrics (for example CPUUtilization, NetworkIn, NetworkOut, Disk I/O, status checks) and custom metrics organized by namespace and dimensions (for example InstanceId).
  • Logs: Centralize application and system logs using CloudWatch Logs (log groups and log streams). Apply metric filters to convert log patterns into actionable metrics.
  • Dashboards: Combine widgets (graphs, single-value widgets, text) to create operational views for teams.
  • Alarms: Trigger SNS notifications, auto-scaling actions, or Lambda functions when metric thresholds are breached.
  • Advanced features: Contributor Insights, Logs Insights, and Anomaly Detection for deeper analysis.
Typical workflow when instrumenting applications
  1. Emit relevant metrics (custom or rely on AWS-provided metrics) with meaningful dimensions.
  2. Forward application and system logs to CloudWatch Logs (using CloudWatch Agent, Fluentd, or log-forwarders from containers).
  3. Build dashboards to surface KPIs and business metrics.
  4. Create alarms to notify teams or drive automated remediation.
Practical tip: start by identifying a small set of high-value metrics (latency, error rate, saturation) and dashboards for your critical paths, then expand incrementally. Explore EC2 metrics in the CloudWatch Metrics Explorer and add chosen charts to dashboards for quick operational visibility.
A screenshot of the AWS CloudWatch Explorer interface with the metrics search box containing "ec2" and a dropdown listing EC2 metric options. The right pane displays "No charts" and instructions to choose a metric to start.

AWS X-Ray (Distributed Tracing)

AWS X-Ray provides distributed tracing to trace requests as they traverse services—such as API Gateway → Lambda → downstream services—and to surface where latency and errors are occurring. Core X-Ray concepts
  • Traces: A single request’s end-to-end record across instrumented services.
  • Segments and subsegments: Timing, metadata, and annotations per service or operation.
  • Service map: Visual graph showing service interactions and hotspots for latency or errors.
  • Sampling: Controls trace volume to balance observability vs. cost and data volume.
  • Integrations: Built-in support for many AWS SDKs, Lambda, Amazon API Gateway, and OpenTelemetry exporters.
How to use X-Ray effectively
  • Instrument key services and entry points (API Gateway, load balancers, client SDKs) to ensure trace propagation.
  • Add business and diagnostic metadata using annotations and metadata fields to make traces searchable.
  • Tune sampling rules to capture representative traces while limiting cost.
A screenshot of the AWS CloudWatch web console, showing the left navigation menu and a main content area. The page content describes X-Ray features like server- and client-side latency detection and OpenTelemetry support.
Sampling controls are important: collecting every trace can increase cost and storage. Configure sampling rules to retain representative traces while avoiding excessive telemetry volume.

AWS Config (Resource Inventory and Configuration Tracking)

AWS Config continuously records resource configurations and their change history, giving you an auditable inventory and the ability to evaluate resources against compliance rules. Primary features
  • Resource inventory: Catalog of recorded resources with current configuration details.
  • Configuration history: Time-series of configuration changes per resource for root-cause analysis.
  • Rules: Managed or custom rules to evaluate resource configurations (example: ensuring S3 buckets are not public).
  • Aggregators: Aggregate Config data across multiple accounts and regions for organization-level reporting.
  • Snapshots and exports: Delivery of configuration snapshots and change history to S3 for auditing.
Common use cases
  • Demonstrate compliance by mapping Config rule evaluations to controls.
  • Investigate configuration drift and identify when and how a resource changed.
  • Automate remediation workflows using Config rule triggers + Lambda.
Viewing the Config resource list gives you an immediate snapshot of recorded resources and their compliance state, which is useful when troubleshooting or preparing audit evidence.
A screenshot of the AWS Config console showing a list of resources with columns for resource identifier, type (e.g., ACM Certificate, AppConfig deployments, Cassandra Keyspace) and compliance status. The browser toolbar and AWS account/region details are visible along the top.

CloudTrail (API Activity and Audit Logging)

AWS CloudTrail records account activity and API calls across your AWS environment, providing an auditable trail that answers who did what, on which resource, and when. Capabilities to know
  • Event history: Search recent management events without additional configuration.
  • Trails: Persist events to S3 (optionally stream to CloudWatch Logs or EventBridge) for long-term retention and analysis.
  • Management vs. Data events: Management events capture control-plane operations (e.g., CreateBucket), while data events capture resource-level activity (e.g., S3 object reads/writes, Lambda function invocations).
  • Insights: Machine-learning based detection for unusual API call patterns.
  • Integration: Use CloudTrail logs as inputs for security investigations, SIEMs, or compliance reports.
Practical advice: enable an organization-level trail (if using AWS Organizations) to centralize audit logs and ensure trails are encrypted and delivered to a secure S3 bucket with proper lifecycle and access controls.

Quick mental mapping and comparison

  • CloudWatch → Metrics, logs, dashboards, alarms (operational monitoring).
  • X-Ray → Distributed tracing (request path, latency, fault diagnosis).
  • AWS Config → Configuration inventory, history, compliance checks.
  • CloudTrail → Auditing and API activity logging.
Comparison table

Next steps / Hands-on suggestions

  • Instrument a simple application:
    • Add CloudWatch logging and custom metrics for latency and errors.
    • Integrate X-Ray to trace a request through the full call path.
  • Create a CloudWatch dashboard with 4–6 core widgets (latency, error rate, CPU, request count).
  • Define a few AWS Config rules (e.g., S3 public access, required tags) and review evaluations.
  • Enable an organization CloudTrail to deliver logs to a centralized, secured S3 bucket and configure lifecycle rules.
For deeper learning, follow the official docs and hands-on labs: This lesson gave you a concise orientation. Each service above warrants focused, hands-on practice to master instrumentation, alerting, compliance automation, and cost-conscious telemetry strategies.

Watch Video