Add the following permissions to your Datadog IAM policy in order to collect Amazon 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)
Once the lambda function is installed, manually add a trigger on the S3 bucket or CloudWatch log group that contains your Amazon CodeDeploy logs in the AWS console:
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.
Events
The AWS Codedeploy integration includes events for successful, failed, and stopped deployments. See example events below:
Service Checks
The AWS Codedeploy integration does not include any service checks.