Skip to content

Flare Generation

A flare contains essential troubleshooting information that is sent to the Datadog support team to assist in resolving Datadog support tickets.

To generate a flare for ECS Fargate:

  1. On your ECS Fargate service in CDK, set the enableExecuteCommand to true.

    const service = new abcBlueGreenApplicationLoadBalancedFargateService(this, 'FargateService', {
          serviceName: APP_NAME,
          cluster: cluster,
          ...
          ...
          enableExecuteCommand : true
        })
    
  2. From your terminal, log in to your AWS Account, assuming the elevated engineer role where the container is running.

    sde login --workload=<workload> --role=<role> --env=<env> --version=2 --assume=Engineer
    
  3. Run the following command to generate the flare:

    aws ecs execute-command --cluster <CLUSTER_NAME> \
        --task <TASK_ID> \
        --container datadog-agent \
        --interactive \
        --command "agent flare <CASE_ID>"
    

Additional resources