Configure Agents/Collectors
Once you have your monitoring account structure in place, you will need to configure your applications, services, and other infrastructure components to send telemetry to CloudWatch.
This is a high-level guide to configuring your agents and collectors. For in-depth guidance, please refer to various sections in this best practices guide.
Amazon EKS
For EKS, the simplest way to configure observability it to use the Amazon EKS add-on. This will install Container Insights with enhanced observability for Amazon EKS. The add-on installs the CloudWatch agent to send infrastructure metrics from the cluster, installs Fluent Bit to send container logs, and also enables CloudWatch Application Signals to send application performance telemetry. (It is configurable if you do not want Application Signals, Container Insights, etc.)
Typically, the Amazon CloudWatch Observability EKS add-on is installed as a DaemonSet.
Some options for EKS are:
CloudWatch Agent for EKS
- Amazon CloudWatch Observability EKS add-on
- Amazon CloudWatch Observability Helm Chart
OTEL Collector for EKS
Alternatively, if you want to use the OTEL collector, you can:
- Configure AWS Exporters
- Set your OTLP exporter to point to the log and traces OTLP endpoints
- Define your processing pipelines
- Instrument your application using OTEL libraries (if required)
Amazon ECS
For ECS, you can enable Container Insights to collect infrastructure metrics for your clusters. You can also deploy Application Signals to collect application performance telemetry and associated traces. For logs, you can use the awslogs driver to send your log data to CloudWatch, or you can use OpenTelemetry collectors to send the data.
Some options for EKS are:
CloudWatch Agent for ECS
- Enable Container Insights
- Deploy Application Signals (optional)
- Use the awslogs log driver