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.
| Capability | What it provides |
|---|---|
| CloudWatch metrics | Published automatically by AWS services; anomaly detection and composite alarms reduce noise |
| CloudWatch agent | OS metrics such as memory and disk |
| Embedded metric format | Custom metrics emitted inside log lines |
| Logs and Logs Insights | Storage with retention, and queries |
| Contributor Insights | Top contributors to a pattern, e.g. IPs causing the most errors |
| Synthetics canaries | Scripted checks of endpoints and user journeys |
| RUM | Performance 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.
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, Amazon Managed Service for Prometheus stores Prometheus metrics queried with PromQL, and Amazon Managed Grafana builds dashboards across CloudWatch, Prometheus, OpenSearch and other sources. The following table summarises the tools.
| Tool | Use |
|---|---|
| AWS X-Ray | Traces requests across services |
| Application Signals | Automatic service maps; latency, errors, availability; SLOs |
| ADOT | Collects telemetry with OpenTelemetry standards |
| Container Insights | ECS and EKS |
| Managed Service for Prometheus | Prometheus metrics and PromQL |
| Managed Grafana | Dashboards across CloudWatch, Prometheus, OpenSearch and more |
To centralise logs, subscription filters stream to Firehose, OpenSearch or S3 in a logging account; Security Lake collects security logs in OCSF format.
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::TraceDashboards, 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.
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.
- Kubernetes metrics queried with PromQL point to Managed Service for Prometheus, with Managed Grafana.
- 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.