Skip to main content

OpenTelemetry on AWS

General

Open all

    OpenTelemetry is an open source observability framework and a Cloud Native Computing Foundation project. It provides APIs, SDKs, semantic conventions, and a wire protocol called OTLP for producing and transmitting metrics, logs, and traces. It is the industry standard for application instrumentation and is supported by most observability tools, including Amazon CloudWatch.

    Yes. Amazon CloudWatch natively supports OpenTelemetry. CloudWatch provides OTLP endpoints for metrics, logs, and traces, so any OpenTelemetry SDK or collector can send data to CloudWatch without AWS-specific code. CloudWatch stores the data with its OpenTelemetry attributes intact.

    Yes. Amazon CloudWatch monitors workloads on AWS, on premises, and in other clouds, including Microsoft Azure. The CloudWatch agent runs on on-premises servers, Azure virtual machines, and Azure Kubernetes Service (AKS), in addition to Amazon EC2, Amazon ECS, Amazon EKS, and AWS Lambda. The same agent, OpenTelemetry instrumentation, and configuration work in every environment.

    Yes, OpenTelemetry with CloudWatch agent is free to use. You pay only for the telemetry you ingest, store, and query in Amazon CloudWatch. For details, see Amazon CloudWatch pricing.

    The CloudWatch agent is an open source agent from AWS, built on the OpenTelemetry Collector, that sends metrics, logs, and traces to Amazon CloudWatch. It receives OTLP from applications and collects host and container logs, infrastructure and process metrics, Prometheus metrics, and GPU telemetry. The CloudWatch agent also handles Region selection, endpoint selection, and request signing.

    No. Applications can send OTLP directly to the Amazon CloudWatch OTLP endpoints without a collector. A collector such as the CloudWatch agent is useful when you also want host and container telemetry. If you need components the CloudWatch agent does not include, the upstream OpenTelemetry Collector can also send data to CloudWatch.

    No, not if your application already uses OpenTelemetry. You change the OTLP exporter endpoint to point at the CloudWatch agent or the Amazon CloudWatch OTLP endpoints. For applications that are not yet instrumented, OpenTelemetry zero-code instrumentation for Java, Python, Node.js, and .NET captures requests, dependencies, and runtime metrics without code changes.

    For most workloads, AWS recommends the CloudWatch agent. The CloudWatch agent receives OpenTelemetry data from your applications and collects host, container, and infrastructure telemetry in the same agent. The CloudWatch agent also signs requests to Amazon CloudWatch for you.

    On Amazon EKS, install the Amazon CloudWatch Observability add-on, which deploys the CloudWatch agent and turns on Container Insights. On Amazon ECS, run the CloudWatch agent alongside your tasks. In both cases, applications send OTLP to the CloudWatch agent, which forwards metrics, logs, and traces to Amazon CloudWatch.

    Yes. The CloudWatch agent is open source and built on the upstream OpenTelemetry Collector. The source code is available on GitHub in the aws/amazon-cloudwatch-agent repository.

    Yes. AWS Distro for OpenTelemetry (ADOT), including the ADOT Collector, is still supported, and existing deployments continue to work. To send OpenTelemetry data to Amazon CloudWatch, AWS recommends the CloudWatch agent or sending OTLP directly to the CloudWatch OTLP endpoints. Your OpenTelemetry instrumentation does not need to change.