Update to required versions of agents or Amazon EKS add-on
After August 9, 2024, CloudWatch Application Signals will no longer support older versions of the Amazon CloudWatch Observability EKS add-on, the CloudWatch agent, and the Amazon Distro for OpenTelemetry auto-instrumentation agent.
For the Amazon CloudWatch Observability EKS add-on, versions older than
v1.7.0-eksbuild.1
won't be supported.For the CloudWatch agent, versions older than
1.300040.0
won't be supported.For the Amazon Distro for OpenTelemetry auto-instrumentation agent:
For Java, versions older than
1.32.2
won't be supported.For Python, versions older than
0.2.0
won't be supported.
Important
The latest versions of the agents include updates to the Application Signals metric schema. These updates are not backward compatible, and this can result in data issues if incompatible versions are used. To help ensure a seamless transition to the new functionality, do the following:
If your application is running on Amazon EKS, be sure to restart all your instrumented applications after you update the Amazon CloudWatchObservability add-on.
For applications running on other platforms, be sure to upgrade both the CloudWatch agent and the Amazon OpenTelemetry auto-instrumentation agent to the latest versions.
The instructions in the following sections can help you update to a supported version.
Contents
Update the Amazon CloudWatch Observability EKS add-on
To the Amazon CloudWatch Observability EKS add-on, you can use the Amazon Web Services Management Console or the Amazon CLI.
Use the console
To upgrade the add-on using the console
Open the Amazon EKS console at https://console.amazonaws.cn/eks/home#/clusters
. Choose the name of the Amazon EKS cluster to update.
Choose the Add-ons tab, then choose Amazon CloudWatch Observability.
Choose Edit, select the version you want to update to, and then choose Save changes.
Be sure to choose
v1.7.0-eksbuild.1
or later.Enter one of the following Amazon CLI commands to restart your services.
# Restart a deployment kubectl rollout restart deployment/
name
# Restart a daemonset kubectl rollout restart daemonset/name
# Restart a statefulset kubectl rollout restart statefulset/name
Use the Amazon CLI
To upgrade the add-on using the Amazon CLI
Enter the following command to find the latest version.
aws eks describe-addon-versions \ --addon-name amazon-cloudwatch-observability
Enter the following command to update the add-on. Replace
$VERSION
with a version that isv1.7.0-eksbuild.1
or later. Replace$AWS_REGION
and$CLUSTER
with your Region and cluster name.aws eks update-addon \ --region
$AWS_REGION
\ --cluster-name$CLUSTER
\ --addon-name amazon-cloudwatch-observability \ --addon-version$VERSION
\ # required only if the advanced configuration is used. --configuration-values$JSON_CONFIG
Note
If you're using an custom configuration for the add-on, you can find an example of the configuration to use for
$JSON_CONFIG
in Enable CloudWatch Application Signals.Enter one of the following Amazon CLI commands to restart your services.
# Restart a deployment kubectl rollout restart deployment/
name
# Restart a daemonset kubectl rollout restart daemonset/name
# Restart a statefulset kubectl rollout restart statefulset/name
Update the CloudWatch agent and ADOT agent
If your services are running on architectures other than Amazon EKS, you will need to upgrade both the CloudWatch agent and the ADOT auto-instrumentation agent to use the latest Application Signals features.
Update on Amazon ECS
To upgrade your agents for services running on Amazon ECS
Create a new task definition revision. For more information, see Updating a task definition using the console.
Replace the
$IMAGE
of theecs-cwagent
container with the latest image tag from cloudwatch-agenton Amazon ECR. If you upgrade to a fixed version, be sure to use a version equal to or later than
1.300040.0
.Replace the
$IMAGE
of theinit
container with the latest image tag from the following locations:For Java, use aws-observability/adot-autoinstrumentation-java
If you upgrade to a fixed version, be sure to use a version equal to or later than
1.32.2
.For Python, use aws-observability/adot-autoinstrumentation-python
If you upgrade to a fixed version, be sure to use a version equal to or later than
0.2.0
.
Update the Application Signals environment variables in your app container by following the instructions at Step 4: Instrument your application with the CloudWatch agent.
Deploy your service with the new task definition.
Update on Amazon EC2 or other architectures
To upgrade your agents for services running on Amazon EC2 or other architectures
Follow the instructions at Download the CloudWatch agent package and upgrade the CloudWatch agent to the latest version. Be sure to select version
1.300040.0
or later.Download the latest version of the Amazon Distro for OpenTelemetry auto-instrumentation agent from one of the following locations:
For Java, use aws-otel-java-instrumentation
If you upgrade to a fixed version, be sure to choose
1.32.2
or later.For Python, use aws-otel-python-instrumentation
If you upgrade to a fixed version, be sure to choose
0.2.0
or later.
Apply the updated Application Signals environment variables to your application, then start your application. For more information, see Step 3: Instrument your application and start it.