Network Performance Monitoring is now generally available! Network Monitoring is now available!

Amazon CodeDeploy

Crawler Crawler

Overview

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.

Setup

Installation

If you haven’t already, set up the Amazon Web Services integration first.

Metric collection

  1. Add the following permissions to your Datadog IAM policy in order to collect Amazon CodeDeploy metrics. For more information on CodeDeploy policies, review the documentation on the AWS website.

    AWS PermissionDescription
    codedeploy:ListApplicationsUsed to list all CodeDeploy applications
    codedeploy:ListDeploymentGroupsUsed to list all deployment groups within an application (edited)
    codedeploy:ListDeploymentsUsed to list deployments in a deployment group within an application (edited)
    codedeploy:BatchGetDeploymentsGets detailed descriptions of deployments (edited)
    codedeploy:BatchGetDeploymentGroupsGets detailed descriptions of deployment groups
  2. Install the Datadog - AWS CodeDeploy integration.

Log collection

Enable logging

Configure Amazon 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.

Send logs to Datadog

  1. If you haven’t already, set up the Datadog log collection AWS Lambda function.
  2. 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:

Data Collected

Metrics

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.

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.

Troubleshooting

Need help? Contact Datadog support.