AWS CodeDeploy is a service that automates code deployment to instances in the cloud and on-premise.
Enable this integration to see AWS CodeDeploy deployment events and metrics in Datadog.
If you haven’t already, set up the Amazon Web Services integration first.
Add the following permissions to your Datadog IAM policy in order to collect AWS CodeDeploy metrics. For more information, see the CodeDeploy policies on the AWS website.
AWS Permission | Description |
---|
codedeploy:ListApplications | Used to list all CodeDeploy applications |
codedeploy:ListDeploymentGroups | Used to list all deployment groups within an application (edited) |
codedeploy:ListDeployments | Used to list deployments in a deployment group within an application (edited) |
codedeploy:BatchGetDeployments | Gets detailed descriptions of deployments (edited) |
codedeploy:BatchGetDeploymentGroups | Gets detailed descriptions of deployment groups |
Install the Datadog - AWS CodeDeploy integration.
Configure AWS CodeDeploy to send logs either to a S3 bucket or to CloudWatch.
Note: If you log to a S3 bucket, make sure that amazon_codedeploy
is set as Target prefix.
If you haven’t already, set up the Datadog Forwarder Lambda function.
Once the Lambda function is installed, manually add a trigger on the S3 bucket or CloudWatch log group that contains your AWS CodeDeploy logs in the AWS console:
aws.codedeploy.deployment (count) | Count of deployments. Shown as event |
aws.codedeploy.deployment.run_time (gauge) | The run time in seconds from deployment creation to completion. Shown as second |
Each of the metrics retrieved from AWS is assigned the same tags that appear in the AWS console, including but not limited to host name, security-groups, and more.
The AWS CodeDeploy integration includes events for successful, failed, and stopped deployments. See example events below:
The AWS CodeDeploy integration does not include any service checks.
Need help? Contact Datadog support.