Open cvele opened 4 years ago
Out of desparation, I've also opened the DD ports by assigning security group to the service:
description = "DataDogStatsD UDP Port"
from_port = 8125
to_port = 8125
protocol = "udp"
cidr_blocks = [data.aws_vpc.this.cidr_block]
}
ingress {
description = "DataDogStatsD UDP Port"
from_port = 8126
to_port = 8126
protocol = "udp"
cidr_blocks = [data.aws_vpc.this.cidr_block]
}
ingress {
description = "DataDogStatsD TCP Port"
from_port = 8125
to_port = 8125
protocol = "tcp"
cidr_blocks = [data.aws_vpc.this.cidr_block]
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
I've also attempted using 8125
as DD_DOGSTATSD_PORT
and 127.0.0.1
as DD_AGENT_HOST
.
Dogstatsd listens by default on UDP port 8125 not 8126. TCP port 8126 is for APM
Did you get this to work, facing same issue with ECS FARGATE awsvpc
To all the souls lost here:
{
name = "DD_USE_DOGSTATSD"
value = "true"
},
Service is launched on AWS and is composed out of 3 containers (task definition below),
amazon/aws-for-fluent-bit
, datadog/agent:7.22.1 and the PHP 7.3 application which includes datadog client. Service is configured usingawsvpc
networking mode.Datadog agent host and port are not set in PHP client, but are passed via environment variables. Service is up and operational, with no apparent issues. Logs are working, containers are visible in infrastructure section of datadog application.
However, custom metrics are not visible in datadog application. The same PHP application is being deployed to EC2 instance with datadog-agent as a service and custom metrics sent from that context are being displayed in datadog application.
At this point I am very confused and lost. I'm not able to find any solutions to my issue.
Below you can find my task definition.