Skip to content

Commit

Permalink
feat(fargate): implement adot instead of datadog agent
Browse files Browse the repository at this point in the history
  • Loading branch information
InesNi committed Jan 23, 2024
1 parent 3211ac8 commit 9dfca91
Showing 1 changed file with 11 additions and 43 deletions.
54 changes: 11 additions & 43 deletions packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -1084,54 +1084,22 @@ async function ensureTaskExists(context) {
}
},
{
name: 'datadog-agent',
image: 'public.ecr.aws/datadog/agent:7',
environment: [
{
name: 'DD_API_KEY',
value: 'placeholder'
},
{
name: 'DD_OTLP_CONFIG_TRACES_ENABLED',
value: 'true'
},
{
name: 'DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT',
value: '0.0.0.0:4318'
},
{
name: 'DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT',
value: '0.0.0.0:4317'
},
{
name: 'DD_APM_ENABLED',
value: 'true'
},
{
name: 'DD_APM_RECEIVER_PORT',
value: '8126'
},
{
name: 'DD_APM_TRACE_BUFFER',
value: '100'
},
{
name: 'DD_SITE',
value: 'datadoghq.com'
}
],
name: "adot-collector",
image: "amazon/aws-otel-collector",
// essential: true,
command: ["--config=/etc/ecs/container-insights/otel-task-metrics-config.yaml"],
logConfiguration: {
logDriver: 'awslogs',
logDriver: "awslogs",
options: {
'awslogs-group': `${context.logGroupName}/${context.clusterName}`,
'awslogs-region': context.region,
'awslogs-stream-prefix': `artilleryio/${context.testId}`,
'awslogs-create-group': 'true',
mode: 'non-blocking'
"awslogs-group": `${context.logGroupName}/${context.clusterName}`,
"awslogs-region": context.region,
"awslogs-stream-prefix": `artilleryio/${context.testId}`,
"awslogs-create-group": 'true'
}
}
}
},
],

executionRoleArn: context.taskRoleArn
};
context.taskDefinition = taskDefinition;
Expand Down

0 comments on commit 9dfca91

Please sign in to comment.