About This Architecture
ECS OpenTelemetry observability pipeline routes metrics and traces from Java applications running in ECS tasks through an OpenTelemetry Collector to CloudWatch, Amazon Managed Prometheus, and AWS X-Ray via VPC endpoints. The Transaction Processor Java application instrumented with the OTel Java Agent sends telemetry to the OpenTelemetry Collector running on localhost within the same ECS task, eliminating external network hops. VPC endpoints in a private subnet enable secure, cost-efficient communication to AWS observability services without traversing the public internet. This architecture demonstrates best practices for zero-trust networking, reduced data transfer costs, and unified observability across metrics, traces, and logs. Fork and customize this diagram on Diagrams.so to adapt endpoint configurations, add log aggregation, or extend to multi-region deployments.