I want to send logs, metrics, and trace data from my Java code that are placed inside the steinko/helloworld-backend
docker container to Datadog. I am using AWS Distro for OpenTelemetry container as a side car. To configure the Datadog exporter with a YAML file config.yaml
.
I place these two components in an ECS Fargate Service by using Pulumi code:
export const service = new awsx.ecs.FargateService("backend", {
taskDefinitionArgs: {
containers: {
otelCollector: {
image:"docker.io/amazon/aws-otel-collector"
},
backend: {
image: 'steinko/helloworld-backend',
},
dependsOn: [ {
containerName: "otelCollector",
condition: "START"
} ]
}
}
How do I configure a config.yaml
file to docker.io/amazon/aws-otel-collector
in Pulumi code?