Lesson 1 of 7 Operational Excellence and Observability

Building Cross-Account Observability

This lesson explains an observability strategy that shows the health of every workload in every account from one place, connecting metrics, logs and traces so problems can be found quickly.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe how metrics, logs and user experience monitoring combine.
  • Link accounts with CloudWatch cross-account observability.
  • Describe tracing with X-Ray and open-source tooling.

Metrics, logs and user experience

CloudWatch covers several kinds of signal. CloudWatch metrics are published automatically by AWS services, and anomaly detection and composite alarms keep alerts meaningful. The CloudWatch agent adds operating system metrics, such as memory and disk use, that the hypervisor cannot see. The embedded metric format lets applications emit custom metrics inside structured log lines, with no separate API calls. Logs are stored with a retention period and queried with Logs Insights.

Contributor Insights identifies the top contributors to a pattern, such as the IP addresses causing the most errors. Two features measure what users experience. Synthetics canaries run scripted checks of endpoints and user journeys on a schedule, catching problems before users do. RUM (real user monitoring) records the performance real users experience in their browsers. The following table summarises the capabilities.

CapabilityWhat it provides
CloudWatch metricsPublished automatically by AWS services; anomaly detection and composite alarms reduce noise
CloudWatch agentOS metrics such as memory and disk
Embedded metric formatCustom metrics emitted inside log lines
Logs and Logs InsightsStorage with retention, and queries
Contributor InsightsTop contributors to a pattern, e.g. IPs causing the most errors
Synthetics canariesScripted checks of endpoints and user journeys
RUMPerformance real users experience in their browsers

Cross-account observability

In a multi-account organisation, each workload's metrics, logs and traces stay in its own account, so an engineer investigating a problem that spans several services would otherwise switch between accounts. CloudWatch cross-account observability links many source accounts to a central monitoring account. From the monitoring account, teams search, graph and alarm on metrics, logs and traces from all linked accounts, and dashboards and service maps show applications whose components live in different accounts.

The links are configured once for the whole organisation, so new accounts join automatically, and the data is not copied, so there is no additional storage. Teams keep ownership of their own telemetry while a central operations team gains one view, which is usually the first step before centralising logs for long retention.

The following diagram shows source accounts linked to a monitoring account.

CloudWatch cross-account observability. Many source accounts are linked to a central monitoring account, and an engineer in the monitoring account searches metrics, logs and traces from every linked account in one place, while the data stays in the accounts that produced it.
The account names are illustrative. Linking changes where the data can be viewed, not where it is stored.
True or false

Cross-account observability

Exam skills 5.3.1 · 5.3.3

Check facts about CloudWatch cross-account observability.

Log in to try this activity Interactive activities are free with an account.

Tracing and open-source tooling

In a distributed system, a slow request may pass through many services, and tracing shows where the time goes. AWS X-Ray traces requests across services; because the X-Ray SDKs and daemon have been in maintenance mode since February 2026, new instrumentation uses OpenTelemetry. CloudWatch Application Signals builds service maps automatically and reports latency, errors and availability for each service, against service level objectives (SLOs). The AWS Distro for OpenTelemetry (ADOT) collects traces and metrics using the open OpenTelemetry standard, so instrumentation is not tied to one vendor. Container Insights adds metrics and logs for ECS and EKS.

For teams using open-source tools, the CloudWatch agent scrapes Prometheus metrics that applications already expose, and ADOT sends OpenTelemetry traces and metrics to CloudWatch and X-Ray. The following table summarises the tools.

ToolUse
AWS X-RayTraces requests across services
Application SignalsAutomatic service maps; latency, errors, availability; SLOs
ADOTCollects telemetry with OpenTelemetry standards
Container InsightsECS and EKS

To centralise logs, subscription filters stream to Firehose, OpenSearch or S3 in a logging account; Security Lake collects security logs in OCSF format.

Scenario questions

Standardised instrumentation

Exam skills 5.3.1

Choose instrumentation that works across languages and backends.

Log in to try this activity Interactive activities are free with an account.
Worked example

Linking 50 accounts to one monitoring account

Operations staff switch between 50 accounts to investigate incidents. CloudWatch cross-account observability creates a sink in the monitoring account and a link from each source account:

# Monitoring account
SINK_ARN=$(aws oam create-sink --name org-observability --query Arn --output text)
aws oam put-sink-policy --sink-identifier $SINK_ARN --policy '{
  "Version": "2012-10-17",
  "Statement": [{ "Effect": "Allow", "Principal": "*",
    "Action": ["oam:CreateLink", "oam:UpdateLink"], "Resource": "*",
    "Condition": {
      "ForAllValues:StringEquals": { "oam:ResourceTypes": ["AWS::CloudWatch::Metric", "AWS::Logs::LogGroup", "AWS::XRay::Trace"] },
      "ForAnyValue:StringEquals": { "aws:PrincipalOrgID": "o-a1b2c3d4e5" } } }]
}'

# Each source account (deployed with a StackSet)
aws oam create-link --label-template '$AccountName' --sink-identifier $SINK_ARN \
  --resource-types AWS::CloudWatch::Metric AWS::Logs::LogGroup AWS::XRay::Trace

Dashboards, alarms, Logs Insights queries and trace maps in the monitoring account now span every linked account, labelled with the account name. Data stays in the source accounts; the link grants read access, so there is no duplicate storage cost.

Check yourself

What does CloudWatch cross-account observability need?

Show answer

A monitoring account linked to the source accounts, often through Organizations; the source accounts then share their metrics, logs and traces with it.

Exam Tips

Remember for the exam

  • To monitor many accounts from one console, use CloudWatch cross-account observability.
  • For service maps and SLO tracking with little setup, use Application Signals.
  • Existing Prometheus metrics can be scraped into CloudWatch by the CloudWatch agent.
  • Memory and disk metrics from EC2 require the CloudWatch agent.
  • To test endpoints and user journeys proactively, use Synthetics canaries.
  • To find the clients causing the most errors, use Contributor Insights.