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.
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 exampleInstanceId). - 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.
- Emit relevant metrics (custom or rely on AWS-provided metrics) with meaningful dimensions.
- Forward application and system logs to CloudWatch Logs (using CloudWatch Agent, Fluentd, or log-forwarders from containers).
- Build dashboards to surface KPIs and business metrics.
- Create alarms to notify teams or drive automated remediation.

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.
- 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.

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.
- 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.

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.
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.
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.
- Amazon CloudWatch documentation
- AWS X-Ray documentation
- AWS Config documentation
- AWS CloudTrail documentation