AWS ADOT POC with ECS Fargate X-Ray and Cloudwatch Metrics
TLDR
All of the code to spin up this POC can be found in this github repo.
Overview
I recently had the opprotunity to develop some observability into a platform that sorely needed it. This platform is hosted in AWS and runs primarily on ECS. I took this as an opprotunity to build out a proof of concept on AWS using the AWS Distribution for OpenTelemetry (ADOT) Collector.
This POC includes two services hosted on ECS Fargate behind an ALB.
Each service task definition contains an ADOT Sidecar with a
custom ADOT config loaded via SSM in the task definition using the
valueFrom functionality.
All AWS Infrastructure is build as IaC in Terraform. The README on the Github repo contains details on setting up the POC and details about what the POC demonstrates as well as some scrrenshots of the AWS X-Ray dashboard.